.hps-product-shelf {
    margin: 2rem 0;
    --hps-shelf-gap: 1rem;
    --hps-card-width: clamp(10.5rem, 42vw, 14rem);
}

.hps-product-shelf__header {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.hps-product-shelf__heading {
    min-width: 0;
}

.hps-product-shelf__title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.15;
    margin: 0;
}

.hps-product-shelf__subtitle {
    color: currentColor;
    font-size: 0.95rem;
    margin: 0.35rem 0 0;
    opacity: 0.75;
}

.hps-product-shelf__empty {
    border: 1px dashed rgba(0, 0, 0, 0.24);
    color: currentColor;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.75;
    padding: 1rem;
}

.hps-product-shelf__actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
}

.hps-product-shelf__view-all {
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 0.25rem;
    text-decoration: none;
}

.hps-product-shelf__nav {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    color: #1f1f1f;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 2.25rem;
}

.hps-product-shelf__nav span {
    display: block;
    font-size: 1.7rem;
    line-height: 0.8;
    margin-top: -0.08em;
}

.hps-product-shelf__nav:not(:disabled):hover,
.hps-product-shelf__nav:focus-visible {
    border-color: rgba(0, 0, 0, 0.42);
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.hps-product-shelf__nav:disabled {
    cursor: default;
    opacity: 0.35;
}

.hps-product-shelf__nav[hidden] {
    display: none;
}

.hps-product-shelf__viewport {
    margin-inline: -0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 0.25rem;
    scroll-behavior: smooth;
    scroll-padding-inline: 0.25rem;
    scrollbar-width: none;
}

.hps-product-shelf__viewport:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.hps-product-shelf__viewport::-webkit-scrollbar {
    display: none;
}

.hps-product-shelf__track.products,
.woocommerce .hps-product-shelf__track.products {
    align-items: stretch;
    display: flex;
    gap: var(--hps-shelf-gap);
    list-style: none;
    margin: 0;
    padding: 0;
    scroll-snap-type: x mandatory;
}

.hps-product-shelf__item.product,
.hps-product-shelf__track.products > .product,
.woocommerce ul.products .hps-product-shelf__item.product,
.woocommerce ul.products.hps-product-shelf__track > .product {
    align-items: stretch;
    display: flex;
    flex: 0 0 var(--hps-card-width);
    flex-direction: column;
    float: none;
    margin: 0;
    max-width: var(--hps-card-width);
    min-width: 0;
    position: relative;
    scroll-snap-align: start;
    width: var(--hps-card-width);
}

.hps-product-shelf__card {
    color: inherit;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    text-decoration: none;
}

.hps-product-shelf__media {
    display: block;
    position: relative;
}

.hps-product-shelf__image {
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.04);
    display: block;
    overflow: hidden;
}

.hps-product-shelf__badge {
    background: #1f1f1f;
    color: #fff;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    left: 0.5rem;
    line-height: 1;
    padding: 0.4rem 0.5rem;
    position: absolute;
    text-decoration: none;
    top: 0.5rem;
    z-index: 1;
}

.hps-product-shelf__image img {
    aspect-ratio: 1 / 1;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hps-product-shelf__name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0.75rem;
    overflow-wrap: anywhere;
}

.hps-product-shelf__rating,
.hps-product-shelf .star-rating {
    display: none;
}

.hps-product-shelf__purchase {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    justify-content: space-between;
    margin-top: 0.5rem;
    min-height: 2.25rem;
}

.hps-product-shelf__price {
    color: #0f2c4d;
    display: block;
    flex: 1 1 auto;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    min-width: 0;
}

.hps-product-shelf__price .amount {
    background: transparent;
    color: inherit;
    padding: 0;
}

.hps-product-shelf__price del {
    color: #6b7280;
    display: block;
    font-size: 0.82em;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 0.08rem;
    opacity: 1;
    text-decoration-thickness: 1px;
}

.hps-product-shelf__price del .amount {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
}

.hps-product-shelf__price ins {
    background: transparent;
    color: #0f2c4d;
    display: block;
    font-size: 1.04em;
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
}

.hps-product-shelf__price ins .amount,
.hps-product-shelf__price > .amount {
    background: transparent !important;
    color: #0f2c4d !important;
    padding: 0 !important;
}

.hps-product-shelf__cart {
    align-items: center;
    appearance: none;
    background: #1f1f1f;
    border: 1px solid #1f1f1f;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    text-decoration: none;
    width: 2.25rem;
}

.hps-product-shelf__cart svg {
    display: block;
    fill: none;
    height: 1.1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 1.1rem;
}

.hps-product-shelf__cart:hover,
.hps-product-shelf__cart:focus-visible {
    background: #fff;
    color: #1f1f1f;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.hps-product-shelf__card .hps-product-shelf__price {
    margin-top: auto;
    padding-right: 2.75rem;
}

.hps-product-shelf__item.product > .button:not(.added_to_cart),
.hps-product-shelf__track > .product > .button:not(.added_to_cart) {
    align-items: center;
    background: #1f1f1f;
    border: 1px solid #1f1f1f;
    border-radius: 999px;
    bottom: 0;
    color: #fff;
    display: inline-flex;
    font-size: 0;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    right: 0;
    text-decoration: none;
    width: 2.25rem;
}

.hps-product-shelf__item.product > .button:not(.added_to_cart)::before,
.hps-product-shelf__track > .product > .button:not(.added_to_cart)::before {
    background: currentColor;
    content: "";
    display: block;
    height: 1.1rem;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 6h15.1l-1.6 8.1a2 2 0 0 1-2 1.6H9a2 2 0 0 1-2-1.7L5.5 3.8H3' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.9'/%3E%3Ccircle cx='9.2' cy='20' r='1.4' fill='none' stroke='black' stroke-width='1.9'/%3E%3Ccircle cx='17.5' cy='20' r='1.4' fill='none' stroke='black' stroke-width='1.9'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 6h15.1l-1.6 8.1a2 2 0 0 1-2 1.6H9a2 2 0 0 1-2-1.7L5.5 3.8H3' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.9'/%3E%3Ccircle cx='9.2' cy='20' r='1.4' fill='none' stroke='black' stroke-width='1.9'/%3E%3Ccircle cx='17.5' cy='20' r='1.4' fill='none' stroke='black' stroke-width='1.9'/%3E%3C/svg%3E") center / contain no-repeat;
    width: 1.1rem;
}

.hps-product-shelf__item.product > .button:not(.added_to_cart):hover,
.hps-product-shelf__item.product > .button:not(.added_to_cart):focus-visible,
.hps-product-shelf__track > .product > .button:not(.added_to_cart):hover,
.hps-product-shelf__track > .product > .button:not(.added_to_cart):focus-visible {
    background: #fff;
    color: #1f1f1f;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .hps-product-shelf {
        --hps-shelf-gap: 0.75rem;
        --hps-card-width: min(72vw, 13rem);
    }

    .hps-product-shelf__header {
        align-items: start;
        flex-direction: column;
    }

    .hps-product-shelf__actions {
        width: 100%;
    }

    .hps-product-shelf__view-all {
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hps-product-shelf__viewport {
        scroll-behavior: auto;
    }
}
