.bpsr-recommendations {
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid #e8e8e8;
    overflow: hidden;
}

/* --- Header + Title --- */

.bpsr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0;
}

.bpsr-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

/* --- Navigation arrows --- */

.bpsr-nav {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.bpsr-nav[hidden] {
    display: none;
}

.bpsr-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #555;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}

.bpsr-nav-btn:hover:not(:disabled) {
    border-color: #498D00;
    color: #498D00;
}

.bpsr-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.bpsr-nav-btn:focus-visible {
    outline: 2px solid #498D00;
    outline-offset: 2px;
}

/* --- Slider --- */

.bpsr-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 4px;
    scrollbar-width: none;
}

.bpsr-slider::-webkit-scrollbar {
    display: none;
}

/* --- Cards --- */

.bpsr-card {
    flex: 0 0 calc(25% - 9px);
    min-width: 200px;
    scroll-snap-align: start;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}

.bpsr-card:hover {
    border-color: #ccc;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.bpsr-card.bpsr-selected {
    border-color: #498D00;
    background: #fbfdf8;
}

.bpsr-card-link {
    display: block;
    text-decoration: none;
}

.bpsr-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
}

.bpsr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.bpsr-card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.bpsr-card-title-link {
    text-decoration: none;
    color: inherit;
}

.bpsr-card-title-link:hover {
    color: #498D00;
}

.bpsr-card-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bpsr-card-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.bpsr-card-price del {
    color: #999;
    font-weight: 400;
    font-size: 0.8125rem;
}

.bpsr-card-price ins {
    text-decoration: none;
    color: #c62828;
}

.bpsr-card-price .woocommerce-price-suffix {
    font-size: 0.6875rem;
    font-weight: 400;
    color: #999;
}

.bpsr-card-stock {
    font-size: 0.6875rem;
    color: #498D00;
    font-weight: 500;
    line-height: 1;
}

/* --- Selection zone --- */

.bpsr-card-select {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: auto -12px 0;
    padding: 8px 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.8125rem;
    color: #555;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s;
}

.bpsr-card-select:hover {
    background: #f8f8f8;
}

.bpsr-card.bpsr-selected .bpsr-card-select {
    background: #f2f9ec;
    color: #3E7700;
}

.bpsr-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #498D00;
    cursor: pointer;
    flex-shrink: 0;
}

.bpsr-checkbox:focus-visible {
    outline: 2px solid #498D00;
    outline-offset: 2px;
}

.bpsr-select-text {
    line-height: 1;
}

/* --- Multi-add bar --- */

.bpsr-multi-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 16px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 12px;
}

.bpsr-multi-bar[hidden] {
    display: none;
}

.bpsr-multi-count {
    font-size: 0.8125rem;
    color: #555;
    flex: 1;
}

.bpsr-multi-total {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

.bpsr-recommendations .bpsr-multi-bar .bpsr-multi-submit {
    padding: 8px 20px;
    background: transparent;
    color: #498D00;
    border: 2px solid #498D00;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    opacity: 1;
}

.bpsr-recommendations .bpsr-multi-bar .bpsr-multi-submit:hover {
    background: #498D00;
    color: #fff;
}

.bpsr-recommendations .bpsr-multi-bar .bpsr-multi-submit:disabled {
    border-color: #aaa;
    color: #aaa;
    cursor: not-allowed;
    background: transparent;
    opacity: 0.5;
}

.bpsr-recommendations .bpsr-multi-bar .bpsr-multi-submit:focus-visible {
    outline: 2px solid #498D00;
    outline-offset: 2px;
}

.bpsr-recommendations .bpsr-multi-bar .bpsr-multi-submit[data-state="added"] {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

.bpsr-recommendations .bpsr-multi-bar .bpsr-multi-submit[data-state="error"] {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
}

/* --- Tablet (matches Elementor tablet: 769-1024px) --- */

@media (max-width: 1024px) {
    .bpsr-card {
        flex: 0 0 calc(38% - 8px);
    }
}

/* --- Mobile (matches Elementor mobile: <= 768px) --- */

@media (max-width: 768px) {
    .bpsr-recommendations {
        padding-top: 12px;
    }

    .bpsr-title {
        font-size: 1.25rem;
    }

    .bpsr-nav {
        display: none;
    }

    .bpsr-slider {
        gap: 10px;
        scroll-padding-left: 0;
    }

    .bpsr-card {
        flex: 0 0 76%;
        min-width: 0;
    }

    .bpsr-multi-bar {
        position: static;
        flex-wrap: wrap;
    }

    .bpsr-recommendations .bpsr-multi-bar .bpsr-multi-submit {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}
