/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Custom Sportswear Child Theme
Author: ZY
Template: blocksy
Version: 1.0
*/
/* ==================================================
   CUSTOM SPORTSWEAR HOMEPAGE
   ================================================== */


/* ------------------------------
   Global
------------------------------ */

body.home {
    overflow-x: hidden;
}

/* ==================================================
   GLOBAL CONTENT WIDTH
================================================== */

.features,
.product-grid,
.process-grid {
    width: calc(100% - 48px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}


/* ==================================================
   HERO
================================================== */

.hero {
    position: relative;

    width: calc(100% - 48px);
    max-width: 1440px;

    min-height: 500px;
    height: 500px;

    margin-left: auto;
    margin-right: auto;

    display: flex;
    align-items: center;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-sizing: border-box;

    overflow: hidden;
}


/* 左侧遮罩 */

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(5, 22, 45, 0.86) 0%,
        rgba(5, 22, 45, 0.66) 30%,
        rgba(5, 22, 45, 0.2) 58%,
        rgba(5, 22, 45, 0) 80%
    );

    z-index: 1;
}


.hero-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: none;

    margin: 0;
    box-sizing: border-box;

    text-align: left;

    color: #fff;
}


.hero h1 {
    max-width: 600px;

    margin: 0 0 14px;

    color: #fff;

    font-size: clamp(44px, 4.3vw, 66px);
    line-height: 0.98;

    font-weight: 900;
    letter-spacing: -1.4px;
}


.hero p {
    max-width: 560px;

    margin: 0 0 28px;

    color: #fff;

    font-size: 22px;
    line-height: 1.4;
}


.quote-btn {
    display: inline-flex !important;

    width: 180px;
    min-width: 180px;
    height: 52px;

    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0;

    box-sizing: border-box;

    background: #e2383f;
    color: #fff !important;

    font-size: 14px;
    line-height: 1 !important;
    font-weight: 700;

    text-align: center !important;
    text-decoration: none;

    border-radius: 0;

    transition: 0.2s ease;
}


.quote-btn:hover {
    background: #c92c34;
    color: #fff;
}


/* ==================================================
   FEATURES
================================================== */

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 0;

    width: calc(100% - 48px);
    max-width: 1440px;

    margin-left: auto;
    margin-right: auto;

    padding-top: 28px;
    padding-bottom: 28px;

    background: #fff;

    box-sizing: border-box;
}


.features > div {
    min-height: 96px;

    display: flex;

    padding: 0 30px;

    border-right: 1px solid #e6ebf1;

    box-sizing: border-box;
}


.features > div:first-child {
    padding-left: 30px;
}


.features > div:last-child {
    border-right: 0;
    padding-right: 30px;
}


.features h3 {
    margin: 0 0 5px;

    color: #13233a;

    font-size: 17px;
    line-height: 1.2;

    font-weight: 800;
}


.features p {
    margin: 0;

    color: #4d5a6b;

    font-size: 13px;
    line-height: 1.45;
}


/* ==================================================
   PRODUCTS
================================================== */

.home-products {
    width: 100%;
    padding: 48px 24px 56px;
    box-sizing: border-box;
    text-align: center;
}


.home-products h2,
.process h2 {
    max-width: 1440px;

    margin: 0 auto 30px;

    color: #17253a;

    font-size: 27px;
    line-height: 1.1;

    font-weight: 800;

    text-align: center;
}


.home-products h2::after,
.process h2::after {
    content: "";

    display: block;

    width: 42px;
    height: 3px;

    margin: 10px auto 0;

    background: #3267ef;
}


.product-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(210px, 240px));

    justify-content: center;

    gap: 22px;

    width: calc(100% - 48px);
    max-width: 1320px;

    margin-left: auto;
    margin-right: auto;
}


.product-card {
    position: relative;

    overflow: hidden;

    height: 250px;

    background: #eceff2;

    border-radius: 4px;

    box-shadow: 0 3px 10px rgba(10, 25, 45, 0.08);
}


.product-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.25s ease;
}


.product-card:hover img {
    transform: scale(1.04);
}


.product-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(7, 20, 38, 0.82) 0%,
        rgba(7, 20, 38, 0.18) 45%,
        rgba(7, 20, 38, 0) 70%
    );

    z-index: 1;
}


.product-card h3 {
    position: absolute;

    z-index: 2;

    left: 12px;
    right: 12px;
    bottom: 45px;

    margin: 0;

    color: #fff;

    font-size: 15px;
    line-height: 1.15;

    font-weight: 800;

    text-align: center;
}


.product-card a {
    position: absolute;

    z-index: 3;

    left: 50%;
    bottom: 10px;

    transform: translateX(-50%);

    min-width: 112px;

    padding: 8px 12px;

    background: #3267ef;
    color: #fff;

    font-size: 11px;
    line-height: 1;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}


.product-card a:hover {
    background: #2454cc;
    color: #fff;
}


/* ==================================================
   HOW IT WORKS
================================================== */

.process-grid {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 0;

    width: calc(100% - 48px);
    max-width: 1400px;

    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;

    justify-items: center;
}



.process-grid > div {
    position: relative;

    width: 100%;

    padding: 0 20px;

    box-sizing: border-box;

    text-align: center;
}


.process-grid > div:first-child {
    padding-left: 0;
}


.process-grid > div:last-child {
    padding-right: 0;
}


.process-grid > div:not(:last-child)::after {
    content: "›";

    position: absolute;

    top: 18px;
    right: -4px;

    color: #3267ef;

    font-size: 28px;
    line-height: 1;

    font-weight: 300;
}


.process-grid b {
    display: block;

    margin: 0 0 6px;

    color: #3267ef;

    font-size: 24px;
    line-height: 1;

    font-weight: 800;
}


.process-grid h4 {
    margin: 0 0 6px;

    color: #15243a;

    font-size: 14px;
    line-height: 1.2;

    font-weight: 800;
}


.process-grid p {
    margin: 0;

    color: #667386;

    font-size: 12px;
    line-height: 1.4;
}


/* ==================================================
   CTA
================================================== */

.home-cta {
    width: calc(100% - 48px);
    max-width: 1440px;

    margin-left: auto;
    margin-right: auto;

    padding: 42px 20px;

    background:
        linear-gradient(
            90deg,
            rgba(5, 20, 40, 0.96),
            rgba(10, 39, 74, 0.93)
        );

    color: #fff;

    text-align: center;

    box-sizing: border-box;
}


.home-cta h2 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 29px;
    line-height: 1.15;

    font-weight: 800;
}


.home-cta p {
    margin: 0 0 20px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 15px;
}


.home-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;

    padding: 13px 28px;

    background: #e2383f;
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}


.home-cta a:hover {
    background: #c92c34;
    color: #fff;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {

    .hero-inner,
    .features,
    .product-grid,
    .process-grid {
        width: calc(100% - 40px);
        max-width: none;
    }


    /* FEATURES */

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

    .features > div,
    .features > div:first-child,
    .features > div:last-child {
        min-height: 100px;

        padding: 20px 24px;

        border-right: 0;
        border-bottom: 1px solid #e6ebf1;
    }

    .features > div:nth-child(odd) {
        border-right: 1px solid #e6ebf1;
    }

    .features > div:nth-last-child(-n+2) {
        border-bottom: 0;
    }


    /* PRODUCTS */

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 18px;
    }

    .product-card {
        height: 240px;
    }


    /* PROCESS */

    .process-grid {
        grid-template-columns: repeat(3, 1fr);

        row-gap: 32px;
    }

    .process-grid > div {
        padding: 0 20px;
    }

    .process-grid > div::after {
        display: none;
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

    .hero {
        width: calc(100% - 24px);
        max-width: none;

        margin-left: auto;
        margin-right: auto;

        min-height: 500px;
        height: 500px;
    }

    .hero-inner {
        width: 100%;
        max-width: none;

        padding: 0 20px;

        box-sizing: border-box;
    }

    .features,
    .product-grid,
    .process-grid {
        width: calc(100% - 32px);
        max-width: none;
    }


    /* FEATURES */

    .features {
        grid-template-columns: 1fr;

        padding-top: 10px;
        padding-bottom: 10px;
    }

    .features > div,
    .features > div:first-child,
    .features > div:last-child {
        min-height: auto;

        padding: 18px 16px;

        border-right: 0;
        border-bottom: 1px solid #e6ebf1;
    }

    .features > div:last-child {
        border-bottom: 0;
    }


    /* PRODUCTS */

    .home-products {
        padding: 36px 16px 42px;
    }

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

        gap: 12px;
    }

    .product-card {
        height: 210px;
    }

        .home-cta {
        width: calc(100% - 24px);
        max-width: none;

        margin-left: auto;
        margin-right: auto;

        padding: 50px 24px;

        box-sizing: border-box;
    }


    /* HOW IT WORKS */

    .process {
        padding: 38px 16px 42px;
    }

    .process-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .process-grid > div,
    .process-grid > div:first-child,
    .process-grid > div:last-child {
        padding: 18px 0;

        border-bottom: 1px solid #e6ebf1;
    }

    .process-grid > div:last-child {
        border-bottom: 0;
    }

}


/* 更小手机 */

@media (max-width: 420px) {

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

    .product-card {
        height: 250px;
    }

}

/* ==================================================
   SECTION ALIGNMENT
================================================== */


/* OUR PRODUCTS */

.home-products.align-left {
    text-align: left;
}

.home-products.align-center {
    text-align: center;
}

.home-products.align-right {
    text-align: right;
}


/* OUR PRODUCTS 标题下划线 */

.home-products.align-left h2::after {
    margin-left: 0;
    margin-right: auto;
}

.home-products.align-center h2::after {
    margin-left: auto;
    margin-right: auto;
}

.home-products.align-right h2::after {
    margin-left: auto;
    margin-right: 0;
}



/* HOW IT WORKS */

.process.align-left {
    text-align: left;
}

.process.align-center {
    text-align: center;
}

.process.align-right {
    text-align: right;
}


/* HOW IT WORKS 标题下划线 */

.process.align-left h2::after {
    margin-left: 0;
    margin-right: auto;
}

.process.align-center h2::after {
    margin-left: auto;
    margin-right: auto;
}

.process.align-right h2::after {
    margin-left: auto;
    margin-right: 0;
}

/* ==================================================
   FEATURES ALIGNMENT
================================================== */


/* 模块位置 */

.features.align-left .feature-item {
    justify-content: flex-start;
    align-items: center;
}

.features.align-center .feature-item {
    justify-content: center;
    align-items: center;
}

.features.align-right .feature-item {
    justify-content: flex-end;
    align-items: center;
}


/* 文字位置 */

.features.text-left .feature-content,
.features.text-left .feature-content h3,
.features.text-left .feature-content p {
    text-align: left;
}

.features.text-center .feature-content,
.features.text-center .feature-content h3,
.features.text-center .feature-content p {
    text-align: center;
}

.features.text-right .feature-content,
.features.text-right .feature-content h3,
.features.text-right .feature-content p {
    text-align: right;
}

/* ==================================================
   HERO BUTTON ALIGNMENT
================================================== */

.hero-button-wrap {
    width: 100%;
    display: flex;
    box-sizing: border-box;
}

.hero-button-wrap.align-left {
    justify-content: flex-start;
    padding-left: 0;
}

.hero-button-wrap.align-center {
    justify-content: center;
}

.hero-button-wrap.align-right {
    justify-content: flex-end;
    padding-right: 0;
}

.hero-button-wrap.align-left {
    justify-content: flex-start;
}

.hero-button-wrap.align-center {
    justify-content: center;
}

.hero-button-wrap.align-right {
    justify-content: flex-end;
}


/* 防止主题默认按钮样式覆盖 */

.hero-button-wrap .quote-btn {
    text-decoration: none;
    transition: 0.2s ease;
}

.hero-button-wrap .quote-btn:hover {
    opacity: 0.9;
}

/* ==================================================
   FEATURES ALIGNMENT
   ================================================== */

/* 每个 Feature 格子 */

.features .feature-item {
    display: flex;
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    gap: 14px;

    align-items: center;
}


/* ==================================================
   模块整体位置
   控制：图标 + 文字整个组合的位置
   ================================================== */

.features.align-left .feature-item {
    justify-content: flex-start;
}

.features.align-center .feature-item {
    justify-content: center;
}

.features.align-right .feature-item {
    justify-content: flex-end;
}


/* ==================================================
   文字区域
   ================================================== */

.features .feature-content {
    box-sizing: border-box;
}


/* ==================================================
   文字左对齐
   ================================================== */

.features.text-left .feature-content,
.features.text-left .feature-content h3,
.features.text-left .feature-content p {
    text-align: left;
}


/* ==================================================
   文字居中
   ================================================== */

.features.text-center .feature-content,
.features.text-center .feature-content h3,
.features.text-center .feature-content p {
    text-align: center;
}


/* ==================================================
   文字右对齐
   ================================================== */

.features.text-right .feature-content,
.features.text-right .feature-content h3,
.features.text-right .feature-content p {
    text-align: right;
}


/* ==================================================
   图标
   ================================================== */

.features .feature-icon {
    flex: 0 0 auto;
}

.features .feature-icon img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ==================================================
   没有图标时
   ================================================== */

.features .feature-item:not(:has(.feature-icon)) {
    gap: 0;
}


/* ==================================================
   CENTER 模式
   ================================================== */

.features.align-center .feature-item {
    align-items: center;
}


/* ==================================================
   FEATURES 手机端
   ================================================== */

@media (max-width: 767px) {

    .features .feature-item {
        width: 100%;
        gap: 10px;
    }

    .features.align-center .feature-item {
        justify-content: center;
    }

    .features.text-left .feature-content,
    .features.text-center .feature-content,
    .features.text-right .feature-content {
        width: auto;
        max-width: 100%;
    }

}


/* 如果没有上传图标，不影响文字居中 */

.features.align-center .feature-content {
    margin-left: auto;
    margin-right: auto;
}

body.home {
    overflow-x: hidden;
}

/* WooCommerce cart: stack Player Details heading and values */
.woocommerce-cart dl.variation dt.variation-Player-Details {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 6px !important;
}

.woocommerce-cart dl.variation dd.variation-Player-Details {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.woocommerce-cart .csw-cart-player-details {
    display: block;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.woocommerce-cart .csw-cart-player-line {
    display: block;
}