.home-selected-products-box {
    margin-bottom: 40px;
}

.home-selected-products-title h2 {
    text-align: left;
    margin: 80px 0px 0px 0px;
    color: #0037A4;
    font-weight: 400;
}

.home-selected-products-content-box {
    padding: 40px 0px 0px 0px;
    /* overflow: visible !important; */
}

.home-selected-products-content-box ul {
    display: grid;
    /* column-gap: 20px; */
    grid-template-columns: repeat(3, 1fr);
}


.home-selected-products-content-box li {
    /* display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 !important;
    position: relative */
    /* border-radius: 12px; */
    /* background: #FFFFFF; */
    /* border: 1px solid #E6E6E6; */
    /* overflow: hidden;
    box-shadow: 20px 0px 30px #E6E6E6; */
}

/* 在 SelectedProducts.css 中添加或更新以下样式 */

.custom-home-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 20px; */
    padding: 0 !important;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0.5;
    /* 未选择时半透明 */
    /* background-color: #ffffff; */
    /* 白色背景 */
    box-shadow: 7px -3px 8px rgba(68, 111, 191, 0.2);
    /* 修改后的阴影效果 */
    min-height: 350px;
    /* 确保卡片有足够高度 */
}

.custom-home-product-card:nth-child(1) {
    /* opacity: 1; */
}

.custom-home-product-card:hover {
    box-shadow: 0 5px 15px rgba(68, 111, 191, 0.3);
    /* 悬停时增强阴影 */
    border-color: transparent;
    opacity: 1;
    /* 悬停时恢复正常透明度 */
}

.product-thumbnail-centered {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.product-thumbnail-centered a {
    display: block;
    margin: 100px 100px 10px 100px;
}

.product-thumbnail-centered img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.product-title-centered {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.product-title-centered .product-title {
    margin: 0;
    font-size: 1.1em;
}

.product-title-centered a {
    text-decoration: none;
    color: inherit;
}

.ast-woo-shop-product-description {
    padding: 0 20px;
}

.ast-woo-shop-product-description p {
    text-align: center;
}

.product-details-centered {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card-button-container {
    width: stretch;
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    margin-top: auto;
}

.product-card-button-home {
    background: transparent;
    color: #446FBF;
    border: 2px solid #446FBF;
    padding: 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    align-self: center;
    /* 按钮居中 */
    margin-top: auto;
    /* 按钮推到底部 */
    width: 10px;
    height: 10px;
}

.product-card-button-home:hover {
    background: #446FBF;
    color: white;
}

/* 响应式设计：小屏幕下取消网格布局 */
@media screen and (max-width: 991px) {
    .home-selected-products-box {
        margin-bottom: 0px;
    }

    .home-selected-products-title h2 {
        margin: 20px 0px 0px 4%;
    }

    .home-selected-products-content-box {
        padding: 20px 0px 0px 0px;
    }

    .home-selected-products-content-box ul {
        display: flex;
    }

    .home-selected-products-content-box li {
        margin-bottom: 20px;
    }

    .product-thumbnail-centered a {
        margin: 40px 40px 10px 40px;
    }

    .ast-woo-shop-product-description p {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card-button-home {
        border: 1px solid #446FBF;
        padding: 8px;
    }

    .product-card-button-container {
        padding: 10px;
    }

    .home-selected-products-content-box ul.products {
        margin-bottom: 0px;
    }

    .home-selected-products-content-box ul.products li.product {
        margin-bottom: 20px;
    }
}