.subcategory-products-hero {
    padding: 170px 0 90px;
    background:
        radial-gradient(circle at top left, rgba(225, 29, 46, 0.12), transparent 24%),
        radial-gradient(circle at bottom right, rgba(0, 102, 204, 0.10), transparent 28%),
        linear-gradient(180deg, #09111d 0%, #101b2c 100%);
}

.subcategory-products-hero-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 48px;
    align-items: center;
}

.subcategory-products-hero-content h1 {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #fff;
}

.subcategory-products-lead {
    font-size: 18px;
    line-height: 1.9;
    color: #d5ddea;
    margin-bottom: 26px;
    max-width: 700px;
}

.subcategory-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #c7d1de;
    font-size: 14px;
}

.subcategory-breadcrumb a {
    color: #ffffff;
    transition: 0.3s ease;
}

.subcategory-breadcrumb a:hover {
    color: #ff4757;
}

.subcategory-products-hero-image {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 55px rgba(0,0,0,0.26);
}

.subcategory-products-hero-image img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.products-listing-section {
    padding: 90px 0 110px;
    background:
        radial-gradient(circle at top right, rgba(225, 29, 46, 0.08), transparent 20%),
        radial-gradient(circle at bottom left, rgba(0, 102, 204, 0.07), transparent 25%),
        #0b1220;
}

.products-listing-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.products-listing-head h2 {
    font-size: 40px;
    line-height: 1.1;
    color: #fff;
    font-weight: 900;
    margin-bottom: 10px;
}

.products-listing-head p {
    color: #c7d0dc;
    font-size: 16px;
    line-height: 1.8;
}

.products-listing-count {
    color: #d4dce8;
    font-size: 15px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    isolation: isolate;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239, 35, 60, 0.10), transparent 35%, rgba(0, 102, 204, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-12px) rotate(-0.35deg);
    border-color: rgba(225, 29, 46, 0.35);
    box-shadow: 0 26px 58px rgba(0,0,0,0.26);
}

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

.product-card-image,
.product-card-content {
    position: relative;
    z-index: 1;
}

.product-card-image {
    display: block;
    overflow: hidden;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08) rotate(0.6deg);
    filter: saturate(1.05);
}

.product-card-content {
    padding: 22px 22px 24px;
}

.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.product-card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ff7b86;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.product-card-content h3 {
    margin-bottom: 12px;
}

.product-card-content h3 a {
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    transition: color 0.3s ease;
}

.product-card-content h3 a:hover {
    color: #ff4757;
}

.product-card-content p {
    color: #c7d0dc;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.product-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ef233c, #b10017);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(177, 0, 23, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(177, 0, 23, 0.34);
}

.product-inquiry-link {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    position: relative;
}

.product-inquiry-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #ff4757;
    transition: width 0.3s ease;
}

.product-inquiry-link:hover::after {
    width: 100%;
}

.no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.no-products-found h3 {
    font-size: 30px;
    color: #fff;
    margin-bottom: 10px;
}

.no-products-found p {
    color: #c8d2de;
    font-size: 16px;
}

.custom-pagination-wrap {
    margin-top: 42px;
    display: flex;
    justify-content: center;
}

.custom-pagination-wrap .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.custom-pagination-wrap .page-item .page-link {
    min-width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-weight: 700;
    transition: 0.3s ease;
}

.custom-pagination-wrap .page-item.active .page-link {
    background: linear-gradient(180deg, #ef233c, #b10017);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px rgba(177, 0, 23, 0.28);
}

.custom-pagination-wrap .page-item .page-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.custom-pagination-wrap .page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1199px) {
    .subcategory-products-hero-grid {
        grid-template-columns: 1fr 430px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subcategory-products-hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .subcategory-products-hero {
        padding: 150px 0 80px;
    }

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

    .subcategory-products-hero-image img {
        height: 400px;
    }

    .subcategory-products-hero-content h1 {
        font-size: 40px;
    }

    .products-listing-head h2 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .subcategory-products-hero-content h1 {
        font-size: 32px;
    }

    .subcategory-products-lead,
    .products-listing-head p {
        font-size: 15px;
    }

    .product-card-image img {
        height: 260px;
    }

    .product-card-content h3 a {
        font-size: 22px;
    }

    .product-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-link-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .subcategory-products-hero {
        padding: 135px 0 70px;
    }

    .subcategory-products-hero-content h1 {
        font-size: 28px;
    }

    .products-listing-head h2 {
        font-size: 28px;
    }

    .subcategory-products-hero-image img {
        height: 300px;
    }

    .product-card-content {
        padding: 20px 18px 22px;
    }

    .product-card-content h3 a {
        font-size: 20px;
    }
}