buy-now-card {
    display: grid;
    position: relative;
    grid-template-rows: auto auto 1fr auto;
    background-color: var(--card-bg-color);
    /* width: fit-content; */
}

buy-now-card .buy-now-card__picture {
    grid-row: 1;
}

buy-now-card .buy-now-card__picture a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

buy-now-card .buy-now-card__content {
    display: contents;
    text-align: center;
}

buy-now-card .buy-now-card__content>div {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    min-width: 0;
}

buy-now-card .buy-now-card__content>div:nth-last-child(1) {
    padding-bottom: 20px;
}

buy-now-card .buy-now-card__content-title {
    grid-row: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

buy-now-card .buy-now-card__content-title h6 {
    font-weight: 500;
    font-size: 24px;
    white-space: nowrap;
    color: var(--card-title-color);
}

buy-now-card .buy-now-card__content-description {
    grid-row: 3;
    font-size: 18px;
    text-align: center;
    margin: 10px 0;
    color: var(--card-text-color);
}

buy-now-card .buy-now-card__content-description p {
    margin: 0;
}

buy-now-card .buy-now-card__content-variant select {
    -webkit-appearance: none;
    background-color: #333333;
    border: none;
    border-radius: 5px;
    padding: 4px 30px 4px 10px;
    position: relative;
    cursor: pointer;
    background-image: url("data: image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABUSURBVHgBnc6JCQAgCAXQRmmkNqhNWqmNGsWUCoSsPOCDKD4MANAxOTgLbyumUVNglhlbCD0S98CMHQhbqLErYsG+iAZTIy/MjEiYGxEwP8KwpEEGvTS3RHWdSsUAAAAASUVORK5CYII=");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    background-size: 10px 6px;
    color: #ffffff;
    width: 164px;
}

buy-now-card .buy-now-card__content-variant .variant-wire {
    background-color: transparent;
    border: 1px solid #666666;
    color: #666666;
    background-image: url("data: image/png; base64, iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAk0lEQVR4AZzRzQ2FIBAEYLJU9kp4FagHONuBsQsSLpZgR9oJzpho/AERCQRYdr4LYq2dsCr1cSDbGWNGCSH0MAYUijFkOmRrrXUr3vsBWINCEbYhIvJzzs0CQJViV4TGCvHwFoshzO8QLzkshTB7glhIYU8IczeIxSuWQ5iJQnw4YrjX2+/gHJ1JiN3EsP9zCHrUAgAA //+YcuPZAAAABklEQVQDAJnpbO8p5PUtAAAAAElFTkSuQmCC");
}

buy-now-card .buy-now-card__content-variant select option[disabled] {
    color: #999;
}

/* price */
buy-now-card .buy-now-card__content .buy-now-card__content-price {
    grid-row: 4;
    /* margin:20px 0; */
}

buy-now-card .buy-now-card__content .buy-now-card__content-price .price__regular {
    display: flex;
    column-gap: 20px;
    justify-content: center;
}

buy-now-card .buy-now-card__content .buy-now-card__content-price .price-position-sale span {
    font-weight: 700;
    font-size: 24px;
    color: #13B2BA;
    vertical-align: baseline;
}

buy-now-card .buy-now-card__content .buy-now-card__content-price .price-position-origin span {
    font-size: 12px;
    font-weight: 300;
    color: #B0B0B0;
    text-decoration: line-through;
    vertical-align: baseline;
}

/* button */
buy-now-card .buy-now-card__content .buy-now-card__actions {
    margin-top: 20px;
}

buy-now-card .buy-now-card__content .buy-now-card__actions.buy-now-card__btn-list {
    display: grid;
    grid-row: 5;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    margin-top: 20px;
}

buy-now-card .buy-now-card__content .buy-now-card__actions .buy-now-card__action {
    font-weight: 400;
    font-size: 16px;
    border-radius: 50px;
    height: 40px;
    width: 50%;
    margin: 0 auto;
    white-space: nowrap;
    cursor: pointer !important;
}

/* buy-now-card .buy-now-card__content .buy-now-card__actions a {
    display: contents;
} */

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group .button {
    font-weight: 400;
    font-size: clamp(12px, 1.23vw, 16px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

buy-now-card .buy-now-card__content .buy-now-card__actions.buy-now-card__btn-list .button-group .button {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group a.button {
    background: var(--learn-bg-color);
    color: var(--learn-color);
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire a.button {
    background: transparent;
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire a.button:after {

    box-shadow: 0 0 0 1px var(--learn-bg-color), 0 0 0 1px var(--learn-bg-color);
}




buy-now-card .buy-now-card__content .buy-now-card__actions .button-group .quick-add .button {
    color: var(--add-color);
    background: var(--add-bg-color);
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire .quick-add .button {
    background: transparent;
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire .quick-add .button:after {

    box-shadow: 0 0 0 1px var(--add-bg-color), 0 0 0 1px var(--add-bg-color);
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire .quick-add .button:hover:after {
    box-shadow: unset;
}


/* discount */
buy-now-card .buy-now-card__discount {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #13B2BA1A;
    border-radius: 50px;
}

buy-now-card .buy-now-card__discount span {
    font-weight: 700;
    font-size: 14px;
    color: #13B2BA;
    padding: 6px 10px;
}

/* picture */
buy-now-card .buy-now-card__picture {
    position: relative;
    background: var(--card-img-bg-color);
}

buy-now-card .buy-now-card__picture picture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

buy-now-card .activity-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 105px;
    z-index: 1;
}

buy-now-card .activity-tag img {
    width: 100%;
}

buy-now-card .activity-tag p {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    width: 100%;
    text-align: center;
    color: var(--tag-text-color);
}

buy-now-card .button:not(.button--link)::after,
buy-now-card .shopline-element-buy-now::after {
    box-shadow: unset;
}

/* 价格 */
buy-now-card .price .price-position-sale .price-item--sale .notranslate,
buy-now-card .price .price__regular .price-item--regular .notranslate {
    font-size: 24px;
    line-height: 1.2;
    color: var(--card-price-color);
    font-weight: 600;
}

buy-now-card .price .price-position-origin .price-item--regular .notranslate {
    font-size: 16px;
    line-height: 1.2;
    color: var(--card-original-price-color);
    font-weight: 400;
    text-decoration: line-through;
    padding-left: 4px;
}

buy-now-card .product-tag {
    position: absolute;
    top: clamp(24px, 2.22vw, 32px);
    left: clamp(24px, 2.78vw, 40px);
    color: #FF4800;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    background: #FFF0EA;
    padding: 4px 10px;
    transition: all 0.3s ease-out;
}
buy-now-card .product-tag p {
    margin: 0;
}

/* 有背景图样式 */
buy-now-card.product-bg-img > div {
    z-index: 2;
}
buy-now-card.product-bg-img{
    background: #F5F5F7;
    padding: clamp(24px, 2.22vw, 32px) clamp(24px, 2.78vw, 40px) clamp(24px, 2.64vw, 38px);
}
buy-now-card.product-bg-img .buy-now-card__picture {
    transition: 0.3s ease-out;
}
buy-now-card.product-bg-img .buy-now-card__content > div {
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    z-index: 2;
}
buy-now-card.product-bg-img .buy-now-card__content .buy-now-card__content-title {
    justify-content: flex-start;
}
buy-now-card.product-bg-img .buy-now-card__content .buy-now-card__content-title h6 {
    color: #1D1D1F;
    text-align: left;
}
buy-now-card.product-bg-img .buy-now-card__content .buy-now-card__content-description {
    margin: 8px 0 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* 严格限制为 2 行 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;

    color: #1D1D1F
}
buy-now-card.product-bg-img .price .price-position-sale .price-item--sale, 
buy-now-card.product-bg-img .price .price__regular .price-item--regular {
    font-size: 20px;
    font-weight: 600 !important;
}
buy-now-card.product-bg-img .buy-now-card__content .buy-now-card__actions {
    margin-top: 12px;
    padding-bottom: 0;
}
buy-now-card.product-bg-img .buy-now-card__content .buy-now-card__actions .button {
    margin: 0;
    padding: 12px clamp(24px, 2.22vw, 32px);
}

buy-now-card.product-bg-img .buy-now-card__bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    opacity: 0;
    transition: 0.3s ease-out;
}

@media (min-width:960px) {
    buy-now-card .buy-now-card__picture {
        margin-bottom: 20px;
    }

    buy-now-card .buy-now-card__content .buy-now-card__actions {
        column-gap: clamp(10px, 1.39vw, 20px);
    }

    buy-now-card .buy-now-card__content .buy-now-card__actions .buy-now-card__action {
        font-size: clamp(12px, 1.11vw, 16px);
    }

    /* 有背景图样式 */
    buy-now-card.product-bg-img .buy-now-card__picture {
        margin-bottom: 8px;
    }

    buy-now-card.product-bg-img .buy-now-card__content .buy-now-card__content-title h6 {
        font-size: 24px;
    }

    buy-now-card.product-bg-img .buy-now-card__content .buy-now-card__content-description {
        font-size: 16px;
        height: 48px;
    }

    buy-now-card.product-bg-img .price .price-position-origin .price-item--regular {
        font-size: 14px;
    }

    buy-now-card.product-bg-img:hover .buy-now-card__picture {
        opacity: 0;
    }

    buy-now-card.product-bg-img:hover .buy-now-card__bg-img {
        opacity: 1;
    }

    buy-now-card.product-bg-img:hover .product-tag {
        background: rgba(255, 240, 234, 0.70);
    }

    buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire a.button:hover:after {
        box-shadow: unset;
    }
}

@media (max-width:959px) {
    buy-now-card {
        grid-template-rows: auto;
        height: 100%;
    }
    buy-now-card .buy-now-card__picture {
        margin-bottom: 14px;
    }

    buy-now-card .buy-now-card__content-title h6 {
        font-size: 18px;
    }

    buy-now-card .buy-now-card__content-description {
        grid-row: 3;
        font-size: 14px;
        margin: 6px 0;
        color: #999999;
    }

    buy-now-card .price .price-position-origin .price-item--regular .notranslate {
        font-size: 18px;
    }

    buy-now-card .buy-now-card__content .buy-now-card__actions .button-group .button {
        font-size: 12px;
    }

    buy-now-card .activity-tag {
        position: absolute;
        top: 0;
        left: 0;
        width: 80px;
        z-index: 1;
    }

    buy-now-card .activity-tag p {
        font-size: 14px;
    }

    buy-now-card .product-tag {
        font-size: 12px;
    }

    /* 有背景图样式 */
    buy-now-card.product-bg-img .buy-now-card__picture {
        opacity: 0;
        margin-bottom: -4px;
    }
    buy-now-card.product-bg-img .buy-now-card__content .buy-now-card__actions .button {
        padding: 12px 34px;
    }

    buy-now-card.product-bg-img .buy-now-card__content .buy-now-card__content-title h6 {
        font-size: 20px;
    }

    buy-now-card.product-bg-img .buy-now-card__content .buy-now-card__content-description {
        font-size: 14px;
    }

    buy-now-card.product-bg-img .price .price-position-origin .price-item--regular {
        font-size: 12px;
    }

    buy-now-card.product-bg-img .buy-now-card__bg-img {
        opacity: 1;
    }

    buy-now-card.product-bg-img .product-tag {
        background: rgba(255, 240, 234, 0.70);
    }

    buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire a.button:active:after {
        box-shadow: unset;
    }
    
}