.jbj-product-list {
    gap: 9px;
}

.jbj-product,
.jbj-product-list.is-grid-view .jbj-product {
    --price-theme-main: #20b979;
    --price-theme-soft: #2bc7843d;
    --price-theme-bg: #f5fff9;
    --price-theme-glow: #39d38f1f;
    --price-theme-ribbon: linear-gradient(135deg, #55dba0, #18b976);
    --price-theme-button: linear-gradient(135deg, #36cf8d, #13b975);
    --price-theme-shadow: #13b9752e;
    display: grid;
    position: relative;
    min-height: 119px;
    padding: 10px;
    background: var(--price-theme-bg);
    border-color: var(--price-theme-soft);
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--price-theme-glow);
    grid-template-columns: 89.6px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 36px;
    gap: 0 9.6px;
}

.jbj-product-card-link {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
}

.jbj-product-cover,
.jbj-product-title,
.jbj-body .jbj-buy {
    position: relative;
    z-index: 2;
}

.jbj-product:nth-child(6n + 3),
.jbj-product:nth-child(6n + 4),
.jbj-product-list.is-grid-view .jbj-product:nth-child(6n + 3),
.jbj-product-list.is-grid-view .jbj-product:nth-child(6n + 4) {
    --price-theme-main: #258cff;
    --price-theme-soft: #3c94ff3d;
    --price-theme-bg: #f5faff;
    --price-theme-glow: #489aff1f;
    --price-theme-ribbon: linear-gradient(135deg, #5fb1ff, #258cff);
    --price-theme-button: linear-gradient(135deg, #4aa3ff, #1d7df2);
    --price-theme-shadow: #258cff2e;
}

.jbj-product:nth-child(6n + 5),
.jbj-product:nth-child(6n + 6),
.jbj-product-list.is-grid-view .jbj-product:nth-child(6n + 5),
.jbj-product-list.is-grid-view .jbj-product:nth-child(6n + 6) {
    --price-theme-main: #ff7640;
    --price-theme-soft: #ffaa603d;
    --price-theme-bg: #fffaf6;
    --price-theme-glow: #ffbb701f;
    --price-theme-ribbon: linear-gradient(135deg, #ffb165, #ff7b42);
    --price-theme-button: linear-gradient(135deg, #ff9f45, #ff6542);
    --price-theme-shadow: #ff74402e;
}

.jbj-product-cover,
.jbj-product-list.is-grid-view .jbj-product-cover {
    grid-row: 1 / 3;
    width: 89.6px;
    height: 89.6px;
    border-radius: 9px;
}

.jbj-product-main,
.jbj-product-list.is-grid-view .jbj-product-main {
    display: block;
    align-content: start;
    padding: 2px 0;
    grid-column: 2;
    grid-row: 1;
}

.jbj-product-title {
    min-height: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    -webkit-line-clamp: 2;
}

.jbj-product-description,
.jbj-product-list.is-grid-view .jbj-product-description {
    display: -webkit-box;
    margin: 5px 0 0;
    font-size: 11px;
    line-height: 16px;
    -webkit-line-clamp: 1;
}

.jbj-metrics,
.jbj-product-list.is-grid-view .jbj-grid-tags {
    display: none;
}

.jbj-product-price,
.jbj-product-list.is-grid-view .jbj-product-price {
    display: flex;
    flex-direction: row;
    grid-column: 2;
    grid-row: 2;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 28px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.jbj-price-ribbon,
.jbj-price-content small,
.jbj-product-price del,
.jbj-product-list.is-grid-view .jbj-price-content small,
.jbj-product-list.is-grid-view .jbj-price-ribbon,
.jbj-product-list.is-grid-view .jbj-product-price del {
    display: none;
}

.jbj-price-content,
.jbj-product-list.is-grid-view .jbj-price-content {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    width: auto;
}

.jbj-price,
.jbj-product-list.is-grid-view .jbj-price {
    width: auto;
    margin: 0;
    overflow: hidden;
    color: var(--price-theme-main);
    font-size: 16px;
    line-height: 18px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jbj-body .jbj-buy,
.jbj-body .jbj-buy:visited,
.jbj-body .jbj-buy:hover,
.jbj-body .jbj-buy:focus-visible,
.jbj-body .jbj-product-list.is-grid-view .jbj-buy,
.jbj-body .jbj-product-list.is-grid-view .jbj-buy:visited,
.jbj-body .jbj-product-list.is-grid-view .jbj-buy:hover,
.jbj-body .jbj-product-list.is-grid-view .jbj-buy:focus-visible {
    display: inline-flex;
    flex: 0 0 73px;
    width: 73px;
    height: 28px;
    padding: 0 7px;
    margin-top: 0;
    background: var(--price-theme-button);
    border-radius: 4px;
    box-shadow: 0 6px 15px var(--price-theme-shadow);
    font-size: 11px;
    gap: 3px;
    white-space: nowrap;
}

.jbj-product-list.is-grid-view {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

.jbj-product-list.is-grid-view .jbj-product-title {
    min-height: 0;
    font-size: 14px;
    line-height: 20px;
}

.jbj-product-list.is-grid-view .jbj-price em {
    display: inline;
    margin-right: 0;
    font-size: inherit;
}
