.whpb-block,
.whpb-block * {
    box-sizing: border-box;
}

.whpb-block {
    margin: var(--whpb-block-margin, 0 0 24px 0);
    padding: var(--whpb-block-padding, 14px 15px 26px 15px);
    background: var(--whpb-block-bg, #ffffff);
    border-radius: var(--whpb-block-radius, 6px);
    font-family: var(--whpb-font-family, inherit);
    --whpb-active-columns: var(--whpb-columns, 4);
}

.whpb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: var(--whpb-heading-margin, 0 0 24px 0);
}

.whpb-heading {
    flex: 1 1 auto;
    margin: 0;
    color: var(--whpb-heading-color, #101828);
    font-family: var(--whpb-heading-font-family, inherit);
    font-size: var(--whpb-heading-font-size, 18px);
    font-weight: var(--whpb-heading-font-weight, 500);
    text-transform: var(--whpb-heading-transform, uppercase);
    line-height: 1.2;
}

.whpb-block .whpb-heading .whpb-heading-link,
.whpb-block .whpb-heading .whpb-heading-link:hover,
.whpb-block .whpb-heading .whpb-heading-link:focus,
.whpb-block .whpb-heading .whpb-heading-link:active {
    color: inherit;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    outline: none;
}

.whpb-has-heading-divider .whpb-header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--whpb-heading-divider-color, #d5d9e6);
}

.whpb-arrows {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.whpb-arrow {
    width: var(--whpb-arrow-size, 34px);
    height: var(--whpb-arrow-size, 34px);
    padding: 0;
    border: 0;
    border-radius: var(--whpb-arrow-radius, 999px);
    background: var(--whpb-arrow-bg, transparent);
    color: var(--whpb-arrow-color, #ffffff);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.whpb-arrow-icon {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.whpb-arrow-outline,
.whpb-arrow-inner {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.whpb-arrow-outline {
    stroke: var(--whpb-arrow-outline-color, #00a63e);
    stroke-width: 10;
}

.whpb-arrow-inner {
    stroke: var(--whpb-arrow-color, #ffffff);
    stroke-width: 4.5;
}

.whpb-arrow:hover:not(:disabled) {
    transform: translateY(-1px);
}

.whpb-arrow:disabled {
    cursor: default;
    opacity: .35;
}

.whpb-products {
    display: grid;
    grid-template-columns: repeat(var(--whpb-active-columns), minmax(0, 1fr));
    gap: var(--whpb-grid-gap, 20px);
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.whpb-is-carousel .whpb-products {
    grid-template-columns: none;
    display: flex;
    align-items: stretch !important;
    gap: var(--whpb-grid-gap, 20px);
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0;
}

.whpb-is-carousel .whpb-products::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.whpb-is-carousel .whpb-product-card { flex: 0 0 100%; }
.whpb-is-carousel.whpb-columns-1 .whpb-product-card { flex-basis: 100%; }
.whpb-is-carousel.whpb-columns-2 .whpb-product-card { flex-basis: calc((100% - var(--whpb-grid-gap, 20px)) / 2); }
.whpb-is-carousel.whpb-columns-3 .whpb-product-card { flex-basis: calc((100% - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px)) / 3); }
.whpb-is-carousel.whpb-columns-4 .whpb-product-card { flex-basis: calc((100% - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px)) / 4); }
.whpb-is-carousel.whpb-columns-5 .whpb-product-card { flex-basis: calc((100% - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px)) / 5); }
.whpb-is-carousel.whpb-columns-6 .whpb-product-card { flex-basis: calc((100% - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px)) / 6); }

.whpb-product-card {
    min-width: 0;
    min-height: 100%;
    background: var(--whpb-card-bg, #ffffff);
    padding: var(--whpb-card-padding, 0);
    border-radius: var(--whpb-card-radius, 0);
    border: var(--whpb-card-border, 0 solid transparent);
    box-shadow: var(--whpb-card-shadow, none);
    text-align: var(--whpb-card-text-align, left);
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: stretch;
}

.whpb-card-body {
    padding-left: 6px;
    padding-right: 6px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.whpb-card-footer {
    margin-top: auto;
}

.whpb-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    margin: var(--whpb-image-margin, 0 0 18px 0);
    border-radius: var(--whpb-image-radius, 0);
    color: inherit;
    text-decoration: none;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.whpb-product-image,
.whpb-image-link img {
    display: block;
    width: 100%;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: var(--whpb-image-fit, cover);
    border-radius: var(--whpb-image-radius, 0);
}

.whpb-discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--whpb-badge-padding, 4px 7px);
    border-radius: var(--whpb-badge-radius, 3px);
    background: var(--whpb-badge-bg, #00a63e);
    color: var(--whpb-badge-text-color, #ffffff);
    font-size: var(--whpb-badge-font-size, 13px);
    font-weight: var(--whpb-badge-font-weight, 800);
    line-height: 1;
    box-shadow: none;
}

.whpb-badge-top-left { top: 0; left: 0; right: auto; bottom: auto; }
.whpb-badge-top-right { top: 0; right: 0; left: auto; bottom: auto; }
.whpb-badge-bottom-left { bottom: 0; left: 0; top: auto; right: auto; }
.whpb-badge-bottom-right { bottom: 0; right: 0; top: auto; left: auto; }

.whpb-product-title {
    margin: var(--whpb-title-margin, 0 0 18px 0);
    color: var(--whpb-title-color, #111827);
    font-family: var(--whpb-title-font-family, inherit);
    font-size: var(--whpb-title-font-size, 16px);
    font-weight: var(--whpb-title-font-weight, 700);
    line-height: var(--whpb-title-line-height, 1.2);
}

.whpb-product-title a {
    color: inherit;
    text-decoration: none;
}

.whpb-product-title a:hover {
    text-decoration: underline;
}

.whpb-product-excerpt {
    margin: var(--whpb-excerpt-margin, 0 0 12px 0);
    color: var(--whpb-excerpt-color, #475467);
    font-size: var(--whpb-excerpt-font-size, 14px);
    line-height: var(--whpb-excerpt-line-height, 1.28);
}

.whpb-location {
    margin: var(--whpb-location-margin, 0 0 6px 0);
    color: var(--whpb-location-color, #00a63e);
    font-size: var(--whpb-location-font-size, 14px);
    font-weight: var(--whpb-location-font-weight, 700);
    line-height: 1.35;
    min-height: 19px;
}

.whpb-location a,
.whpb-location span {
    color: inherit;
    text-decoration: none;
}

.whpb-location a:hover {
    text-decoration: underline;
}

.whpb-rating {
    margin: var(--whpb-rating-margin, 0 0 8px 0);
    color: var(--whpb-rating-color, #667085);
    font-size: var(--whpb-rating-font-size, 13px);
    line-height: 1.2;
    white-space: nowrap;
    min-height: 16px;
}

.whpb-stars {
    color: var(--whpb-star-color, #ffd400);
    letter-spacing: .08em;
}

.whpb-price {
    margin: var(--whpb-price-margin, 0 0 16px 0);
    color: var(--whpb-price-color, #667085);
    font-size: var(--whpb-price-font-size, 14px);
    font-weight: var(--whpb-price-font-weight, 700);
    line-height: 1.35;
    min-height: 38px;
}

.whpb-regular-price {
    color: var(--whpb-regular-price-color, #667085);
    font-weight: 400;
}

.whpb-sale-price,
.whpb-current-price {
    color: var(--whpb-sale-price-color, #4b5563);
    font-weight: var(--whpb-price-font-weight, 700);
}

.whpb-price del {
    color: var(--whpb-regular-price-color, #667085);
    opacity: .8;
}

.whpb-price ins {
    color: var(--whpb-sale-price-color, #4b5563);
    text-decoration: none;
}

.whpb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: var(--whpb-button-padding, 11px 14px);
    border-radius: var(--whpb-button-radius, 4px);
    background: var(--whpb-button-bg, #00ad3b);
    color: var(--whpb-button-text-color, #ffffff) !important;
    font-family: var(--whpb-button-font-family, inherit);
    font-size: var(--whpb-button-font-size, 14px);
    font-weight: var(--whpb-button-font-weight, 700);
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    border: 0;
    transition: background-color .2s ease, transform .2s ease;
}

.whpb-button-full .whpb-button {
    width: 100%;
}

.whpb-button:hover,
.whpb-button:focus {
    background: var(--whpb-button-hover-bg, #009b34);
    transform: translateY(-1px);
}

.whpb-button-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

.whpb-admin-message {
    padding: 12px 14px;
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
    color: #1d2327;
}

@media (max-width: 900px) {
    .whpb-block {
        --whpb-active-columns: var(--whpb-columns-tablet, 2);
    }

    .whpb-is-carousel.whpb-tablet-columns-1 .whpb-product-card { flex-basis: 100%; }
    .whpb-is-carousel.whpb-tablet-columns-2 .whpb-product-card { flex-basis: calc((100% - var(--whpb-grid-gap, 20px)) / 2); }
    .whpb-is-carousel.whpb-tablet-columns-3 .whpb-product-card { flex-basis: calc((100% - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px)) / 3); }
    .whpb-is-carousel.whpb-tablet-columns-4 .whpb-product-card { flex-basis: calc((100% - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px) - var(--whpb-grid-gap, 20px)) / 4); }
}

@media (max-width: 600px) {
    .whpb-block {
        --whpb-active-columns: var(--whpb-columns-mobile, 1);
    }

    .whpb-header {
        align-items: flex-start;
    }

    .whpb-is-carousel.whpb-mobile-columns-1 .whpb-product-card { flex-basis: 100%; }
    .whpb-is-carousel.whpb-mobile-columns-2 .whpb-product-card { flex-basis: calc((100% - var(--whpb-grid-gap, 20px)) / 2); }
}
