/* Recce NI premium homepage product cards — beta.2.8 */
#rni-storefront-homepage .rni-home-v2-products {
    padding-block: clamp(42px, 6vw, 82px);
}

#rni-storefront-homepage .rni-home-v2-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

#rni-storefront-homepage .rni-home-v2-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

#rni-storefront-homepage .rni-home-v2-heading > a:hover,
#rni-storefront-homepage .rni-home-v2-heading > a:focus-visible {
    border-color: var(--rni-colour-olive-700, #345b18);
    background: rgba(52,91,24,.18);
    transform: translateY(-1px);
}

#rni-storefront-homepage .rni-home-product-card {
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 4px;
    background: linear-gradient(180deg, #202120 0%, #181918 100%);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

#rni-storefront-homepage .rni-home-product-card:hover,
#rni-storefront-homepage .rni-home-product-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(117,157,73,.55);
    box-shadow: 0 18px 38px rgba(0,0,0,.3);
}

#rni-storefront-homepage .rni-card-badges {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    pointer-events: none;
}

#rni-storefront-homepage .rni-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 7px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 2px;
    background: #303330;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0,0,0,.24);
}

#rni-storefront-homepage .rni-badge-new { background: #315f20; }
#rni-storefront-homepage .rni-badge-used { background: #5d5126; }
#rni-storefront-homepage .rni-badge-sale { background: #8b2f24; }
#rni-storefront-homepage .rni-badge-limited { background: #7a4a14; }
#rni-storefront-homepage .rni-badge-deposit {
    margin-left: auto;
    background: #183d24;
    border-color: rgba(150,202,121,.4);
}

#rni-storefront-homepage .rni-home-product-image {
    position: relative;
    background:
        radial-gradient(circle at 50% 38%, rgba(255,255,255,.055), transparent 54%),
        #1b1c1b;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

#rni-storefront-homepage .rni-home-product-image::after {
    content: "";
    position: absolute;
    inset: auto 14px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(112,150,70,.55), transparent);
    opacity: .7;
}

#rni-storefront-homepage .rni-home-product-image img {
    transition: transform .28s ease, filter .28s ease;
}

#rni-storefront-homepage .rni-home-product-card:hover .rni-home-product-image img {
    transform: scale(1.035);
    filter: brightness(1.06);
}

#rni-storefront-homepage .rni-home-product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 15px;
}

#rni-storefront-homepage .rni-product-brand {
    min-height: 16px;
    margin: 0 0 6px;
    overflow: hidden;
    color: #9ebd7d;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .11em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

#rni-storefront-homepage .rni-home-product-body h3 {
    min-height: 2.8em;
    margin: 0 0 11px;
    overflow: hidden;
    color: #f4f4f1;
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 750;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#rni-storefront-homepage .rni-home-product-body h3 a {
    color: inherit;
    text-decoration: none;
}

#rni-storefront-homepage .rni-home-stock {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    color: #b7c8ac;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#rni-storefront-homepage .rni-home-stock::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #71a84f;
    box-shadow: 0 0 0 3px rgba(113,168,79,.12);
}

#rni-storefront-homepage .rni-home-stock.is-out-of-stock {
    color: #d3978e;
}

#rni-storefront-homepage .rni-home-stock.is-out-of-stock::before {
    background: #a64539;
    box-shadow: 0 0 0 3px rgba(166,69,57,.13);
}

#rni-storefront-homepage .rni-home-price {
    min-height: 31px;
    margin: auto 0 13px;
    color: #fff;
    font-size: clamp(17px, 1.45vw, 21px);
    font-weight: 900;
    line-height: 1.2;
}

#rni-storefront-homepage .rni-home-price del {
    margin-right: 5px;
    color: #8f938e;
    font-size: .72em;
    font-weight: 600;
}

#rni-storefront-homepage .rni-home-price ins {
    color: #b6d98e;
    text-decoration: none;
}

#rni-storefront-homepage .rni-home-product-body > .rni-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    #rni-storefront-homepage .rni-home-v2-products {
        padding-block: 34px;
    }

    #rni-storefront-homepage .rni-home-v2-heading {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 15px;
    }

    #rni-storefront-homepage .rni-home-v2-heading > div > p:last-child {
        display: none;
    }

    #rni-storefront-homepage .rni-home-v2-heading > a {
        min-height: 34px;
        padding: 8px 10px;
        font-size: 9px;
    }

    #rni-storefront-homepage .rni-home-product-card {
        border-radius: 3px;
        box-shadow: 0 8px 18px rgba(0,0,0,.18);
    }

    #rni-storefront-homepage .rni-card-badges {
        top: 6px;
        left: 6px;
        right: 6px;
        gap: 3px;
    }

    #rni-storefront-homepage .rni-card-badge {
        min-height: 18px;
        padding: 3px 5px;
        font-size: 7px;
        letter-spacing: .05em;
    }

    #rni-storefront-homepage .rni-badge-deposit {
        width: auto;
        margin-left: 0;
    }

    #rni-storefront-homepage .rni-home-product-body {
        padding: 10px;
    }

    #rni-storefront-homepage .rni-product-brand {
        min-height: 13px;
        margin-bottom: 4px;
        font-size: 8px;
    }

    #rni-storefront-homepage .rni-home-product-body h3 {
        min-height: 2.75em;
        margin-bottom: 8px;
        font-size: 12px;
        line-height: 1.35;
    }

    #rni-storefront-homepage .rni-home-stock {
        gap: 5px;
        margin-bottom: 7px;
        font-size: 8px;
        letter-spacing: .03em;
    }

    #rni-storefront-homepage .rni-home-stock::before {
        width: 5px;
        height: 5px;
        flex-basis: 5px;
        box-shadow: none;
    }

    #rni-storefront-homepage .rni-home-price {
        min-height: 24px;
        margin-bottom: 9px;
        font-size: 15px;
    }

    #rni-storefront-homepage .rni-home-product-body > .rni-button {
        min-height: 34px;
        padding: 8px 6px;
        font-size: 8px;
        letter-spacing: .06em;
    }
}

@media (max-width: 380px) {
    #rni-storefront-homepage .rni-home-product-body {
        padding: 8px;
    }
    #rni-storefront-homepage .rni-home-product-body h3 { font-size: 11px; }
    #rni-storefront-homepage .rni-home-price { font-size: 14px; }
    #rni-storefront-homepage .rni-badge-deposit { display: none; }
}
