.needz-product-shelf,
.needz-brand-strip {
    box-sizing: border-box;
    background: #fff;
    margin: 30px 0 34px;
    padding: 0 clamp(16px, 2.8vw, 42px) 26px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.needz-product-rows {
    background: #fff;
    padding-top: 30px;
}

.needz-product-rows .needz-product-shelf {
    margin: 0 0 26px;
}

.needz-product-rows .needz-product-shelf + .needz-product-shelf {
    margin-top: 30px;
}

.needz-product-shelf__header,
.needz-brand-strip__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.needz-product-shelf__title,
.needz-brand-strip__title {
    margin: 0;
    color: #111827;
    font-size: 26px;
    line-height: 1.16;
    font-weight: 760;
}

.needz-product-shelf__subtitle,
.needz-brand-strip__subtitle {
    margin: 4px 0 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.45;
}

.needz-product-shelf__view-all,
.needz-brand-strip__view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.needz-product-shelf__view-all:hover,
.needz-brand-strip__view-all:hover {
    color: #0f766e;
}

.needz-product-shelf__items {
    display: grid;
    grid-template-columns: repeat(var(--needz-columns, 6), minmax(0, 1fr));
    gap: 14px;
}

.needz-product-shelf--scroll .needz-product-shelf__items,
.needz-product-shelf--slider .needz-product-shelf__items {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.needz-product-shelf--scroll .needz-product-card,
.needz-product-shelf--slider .needz-product-card {
    flex: 0 0 205px;
    scroll-snap-align: start;
}

.needz-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 7px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.needz-product-card:hover {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transform: translateY(-1px);
}

.needz-product-card__image-link {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    background: #f8fafc;
}

.needz-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform 180ms ease;
}

.needz-product-card:hover .needz-product-card__image {
    transform: scale(1.025);
}

.needz-product-card__badges {
    position: absolute;
    z-index: 2;
    top: 9px;
    left: 9px;
    right: 9px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    pointer-events: none;
}

.needz-product-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    border-radius: 4px;
    padding: 3px 7px;
    background: #111827;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.needz-product-card__badge--deadline {
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: #fff;
    color: #ef4444;
}

.needz-product-card__badge--restock {
    background: #374151;
}

.needz-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 14px 16px;
}

.needz-product-card__spec,
.needz-product-card__eta {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.3;
}

.needz-product-card__name {
    min-height: 40px;
    margin: 3px 0 10px;
    color: #111827;
    font-size: 14px;
    line-height: 1.38;
    font-weight: 750;
}

.needz-product-card__name a {
    color: inherit;
    text-decoration: none;
}

.needz-product-card__name a:hover {
    color: #0f766e;
}

.needz-product-card__price {
    margin-top: auto;
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.needz-product-card__eta {
    margin-top: 7px;
}

.needz-product-card__stock {
    position: relative;
    margin-top: 6px;
    padding-left: 13px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.3;
}

.needz-product-card__stock::before {
    content: "";
    position: absolute;
    top: 0.44em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #9ca3af;
}

.needz-product-card__stock--in-stock {
    color: #059669;
}

.needz-product-card__stock--in-stock::before,
.needz-product-card__stock--preorder::before {
    background: #10b981;
}

.needz-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    margin-top: 12px;
    border: 1px solid #111827;
    border-radius: 5px;
    background: #111827;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.needz-product-card__button:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.needz-brand-strip {
    padding-bottom: 18px;
}

.needz-brand-strip__items {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 2px 12px;
    scrollbar-width: thin;
}

.needz-brand-strip__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 138px;
    min-height: 74px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #fff;
    text-decoration: none;
}

.needz-brand-strip__item:hover {
    border-color: rgba(17, 24, 39, 0.1);
}

.needz-brand-strip__logo {
    display: block;
    max-width: 118px;
    max-height: 46px;
    object-fit: contain;
}

.needz-brand-strip--grayscale .needz-brand-strip__logo,
.needz-brand-strip--monochrome .needz-brand-strip__logo {
    filter: grayscale(1);
}

.needz-brand-strip--monochrome .needz-brand-strip__logo {
    opacity: 0.88;
    filter: grayscale(1) contrast(1.2);
}

@media (max-width: 1199px) {
    .needz-product-shelf__items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .needz-product-shelf,
    .needz-brand-strip {
        margin-top: 24px;
        margin-bottom: 26px;
        padding-inline: 14px;
        padding-bottom: 20px;
    }

    .needz-product-rows {
        padding-top: 24px;
    }

    .needz-product-rows .needz-product-shelf {
        margin-top: 0;
    }

    .needz-product-rows .needz-product-shelf + .needz-product-shelf {
        margin-top: 24px;
    }

    .needz-product-shelf__header,
    .needz-brand-strip__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
    }

    .needz-product-shelf__title,
    .needz-brand-strip__title {
        font-size: 22px;
    }

    .needz-product-shelf--mobile-scroll .needz-product-shelf__items,
    .needz-product-shelf--slider .needz-product-shelf__items,
    .needz-product-shelf--scroll .needz-product-shelf__items {
        display: flex;
        overflow-x: auto;
        grid-template-columns: none;
    }

    .needz-product-shelf--mobile-scroll .needz-product-card,
    .needz-product-shelf--slider .needz-product-card,
    .needz-product-shelf--scroll .needz-product-card {
        flex: 0 0 72vw;
        max-width: 265px;
    }

    .needz-product-shelf--mobile-grid.needz-product-shelf--grid .needz-product-shelf__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .needz-product-card__body {
        padding: 12px;
    }

    .needz-product-card__name {
        font-size: 13px;
    }

    .needz-brand-strip__item {
        flex-basis: 118px;
        min-height: 64px;
    }
}
