
/* =========================================================
   SANKALP ALLOYS - PRODUCTS CATEGORY PAGE
   Scoped styles to avoid conflicts with global style.css
   ========================================================= */

main .product-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 24px 84px;
}

main .product-intro {
    max-width: 980px;
    margin: 0 auto 30px;
    text-align: center;
}

main .product-intro h2 {
    margin: 0 0 18px;
    color: #106f9f;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.3px;
}

main .product-intro p,
main .product-section > p {
    max-width: 980px;
    margin: 0 auto;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
}

/* Product category chips */
main .product-list {
    max-width: 980px;
    margin: 30px auto 32px;
    padding: 0 !important;
    list-style: none !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

main .product-list li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    margin: 0 !important;
    padding: 12px 14px 12px 42px !important;
    border: 1px solid #dce8ef;
    border-radius: 10px;
    background: #fff;
    color: #263744;
    font-size: 15px;
    font-weight: 650;
    box-shadow: 0 5px 16px rgba(15, 78, 111, 0.06);
}

main .product-list li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #106f9f;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800;
}

/* Cards */
main .product-categories {
    max-width: 1180px !important;
    margin: 48px auto 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch;
}

main .product-card {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid #e1e9ee !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 8px 25px rgba(16, 62, 86, 0.08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

main .product-card:hover {
    transform: translateY(-6px);
    border-color: #c4d9e4 !important;
    box-shadow: 0 16px 34px rgba(16, 62, 86, 0.14);
}

main .product-card .product-image {
    width: 100%;
    height: 235px !important;
    min-height: 235px;
    overflow: hidden;
    display: block !important;
    background: #f3f6f8;
}

main .product-card .product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

main .product-card .product-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .45s ease;
}

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

main .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 24px !important;
}

main .product-info h3 {
    margin: 0 0 10px !important;
    font-size: 21px !important;
    line-height: 1.3;
    font-weight: 750;
}

main .product-info h3 a {
    color: #106f9f !important;
    text-decoration: none !important;
}

main .product-info p {
    margin: 0 !important;
    color: #65717b !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

/* Keep the 7th card visually balanced */
main .product-card:nth-child(7) {
    grid-column: 2 / 3;
}

/* Custom solution CTA */
main .customization-section {
    margin: 0 !important;
    padding: 72px 24px !important;
    background: linear-gradient(135deg, #f4f8fb 0%, #edf5f8 100%) !important;
    border-top: 1px solid #e1ebf0;
}

main .customization-content {
    max-width: 980px !important;
    margin: 0 auto !important;
    text-align: center;
}

main .customization-content h2 {
    margin: 0 0 18px !important;
    color: #106f9f !important;
    font-size: 34px !important;
    line-height: 1.2;
    font-weight: 800;
}

main .customization-content p {
    max-width: 880px;
    margin: 0 auto 28px !important;
    color: #4d5a65 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

main .customization-content .cta-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    padding: 13px 28px !important;
    border-radius: 8px !important;
    background: #106f9f !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(16, 111, 159, .18);
}

main .customization-content .cta-button:hover {
    background: #0a5c84 !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    main .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    main .product-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }

    main .product-card:nth-child(7) {
        grid-column: 1 / -1;
        width: calc(50% - 11px);
        justify-self: center;
    }
}

@media (max-width: 768px) {
    main .product-section {
        padding: 54px 18px 64px;
    }

    main .product-intro h2,
    main .customization-content h2 {
        font-size: 28px !important;
    }

    main .product-card .product-image {
        height: 220px !important;
        min-height: 220px;
    }

    main .customization-section {
        padding: 58px 18px !important;
    }
}

@media (max-width: 576px) {
    main .product-list,
    main .product-categories {
        grid-template-columns: 1fr !important;
    }

    main .product-card:nth-child(7) {
        grid-column: auto;
        width: 100%;
    }

    main .product-card .product-image {
        height: 210px !important;
        min-height: 210px;
    }

    main .product-intro h2,
    main .customization-content h2 {
        font-size: 25px !important;
    }

    main .customization-content .cta-button {
        width: 100%;
        max-width: 320px;
    }
}
