/* ==========================================
   QIFAN SPORTS EQUIPMENT - PRODUCTS PAGE STYLES
   ========================================== */

/* === Products Banner === */
.products-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/wp-content/themes/GlobalZT/assets/images/banner/product-banner.webp') top/cover;
    position: relative;
    overflow: hidden;
}

.breadcrumb-item a{
    color: white;
}
.products-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--primary-color);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.05;
    z-index: 1;
}

.products-banner .container {
    position: relative;
    z-index: 2;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

/* Left Content: Intro & Advantages */
.banner-intro h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 1.5rem 0;
}

.banner-intro h1 span {
    color: var(--primary-color);
}

.banner-intro p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 2.5rem;
    /*max-width: 600px;*/
}

.banner-adv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.adv-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-base);
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.adv-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.adv-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.adv-card p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    color: var(--text-light);
}

/* Right Content: Featured Product Card */
.featured-product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.f-product-visual {
    position: relative;
    height: 300px;
}

.f-product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.f-product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.f-product-content {
    padding: 30px;
}

.f-product-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.f-product-specs {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.f-product-specs li {
    font-size: 0.9rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 8px;
}

.f-product-specs li i {
    color: var(--primary-color);
}

/* === Category Section === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 30px;
}

.cat-card {
    position: relative;
    height: 300px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
    cursor: pointer;
    min-width: 0;
    /* Prevent flex/grid expansion */
}

.cat-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cat-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
}

.cat-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.cat-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    transition: opacity 0.4s ease;
}

.cat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.cat-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cat-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: white;
    opacity: 0.9;
}

/* Hover Overlay */
.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 3;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

.cat-overlay-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-overlay h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.cat-overlay h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--white);
}

.cat-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.cat-features li {
    color: var(--white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.cat-features li i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cat-btn {
    align-self: flex-start;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-btn:hover {
    background: var(--secondary-color);
    transform: translateX(5px);
}

.cat-card:hover .cat-bg img {
    transform: scale(1.1);
}

.cat-card:hover .cat-overlay {
    transform: translateY(0);
}

.cat-card:hover .cat-content {
    opacity: 0;
}

/* === Solutions Section === */
.solutions-section {
    background: #f8f9fb;
}

.solution-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.sol-tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-base);
    cursor: pointer;
    color: var(--text-medium);
}

.sol-tab-btn.active,
.sol-tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.solution-display {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 40px;
}

/* === Service Section === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 50px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    /* border: 1px solid var(--border-color); */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 30px;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* === Responsive === */
@media (max-width: 991px) {
    .banner-grid {
        grid-template-columns: 1fr;
    }

    .banner-intro h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .banner-adv-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .solution-tabs {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .solution-display,
    .service-card {
        padding: 20px;
    }
}