/* BIM_PATCH_04_SHOWCASE v1.1: Native ProStore Roboto (400/500), 15px corners, helper bar, warm bundle bar */

.bim-sc-home {
    padding-top: 8px;
}

/* Header row */
.bim-sc-head {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 16px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.bim-sc-title {
    margin: 0 !important;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    color: #343434 !important;
    letter-spacing: -0.01em;
}

.bim-sc-stock-pill {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e7e2dd;
    font-size: 13px;
    font-weight: 400;
    color: #4f4b48;
    line-height: 1.2;
}

.bim-sc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22a055;
    flex-shrink: 0;
}

/* Subtle interactive choice helper bar */
.bim-sc-helper {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 7px;
    border-radius: 13px;
    background: #f3ede7;
    border: 1px solid #e8ded4;
    margin-bottom: 18px;
}

.bim-sc-help-btn {
    border: 1px solid transparent;
    background: #ffffff;
    border-radius: 9px;
    padding: 9px 14px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bim-sc-help-btn:hover,
.bim-sc-help-btn.is-active {
    border-color: #b45e2a;
    box-shadow: 0 3px 10px rgba(180, 94, 42, 0.1);
}

.bim-sc-help-q {
    font-size: 13.5px;
    font-weight: 400;
    color: #55524f;
    line-height: 1.3;
}

.bim-sc-help-a {
    font-size: 13.5px;
    font-weight: 500;
    color: #b45e2a;
    white-space: nowrap;
}

/* Native ProStore 3 cards refinement (keeps native buttons, -20%, photos, ratings untouched!) */
.bim-sc-home .products__list > li {
    display: -ms-flexbox;
    display: flex;
}

.bim-sc-home .products__item {
    width: 100%;
    border-radius: 15px !important;
    border: 1px solid #ebe6e1 !important;
    box-shadow: 0 3px 14px rgba(34, 30, 28, 0.035) !important;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

.bim-sc-home .products__item:hover {
    border-color: #dec9b8 !important;
    box-shadow: 0 10px 26px rgba(34, 30, 28, 0.07) !important;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.bim-sc-home .bim-sc-card--flagship {
    border: 1.5px solid #ddb396 !important;
    box-shadow: 0 6px 20px rgba(180, 94, 42, 0.075) !important;
}

.bim-sc-home .products__item.is-bim-highlighted {
    border-color: #b45e2a !important;
    box-shadow: 0 0 0 2px rgba(180, 94, 42, 0.18), 0 12px 26px rgba(180, 94, 42, 0.12) !important;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.bim-sc-home .products__item-in {
    border-radius: 14px !important;
    min-height: 100%;
    height: auto !important;
}

/* Keep ProStore native product image & gallery size 100% uncropped and unshrunk */
.bim-sc-home .products__item-gallery,
.bim-sc-home .products__item-image {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* Hide ONLY top red "Акция" badge on these 3 homepage cards (price -20% <mark> stays untouched!) */
.bim-sc-home .products__item-badges .ui-badge--red {
    display: none !important;
}

.bim-sc-badge {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 4px 10px;
    border-radius: 5px;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.bim-sc-badge--hit {
    background: #382e2d;
    color: #f6e7d4;
}

.bim-sc-badge--soft {
    background: #f6efe8;
    color: #8f471c;
    border: 1px solid #eadbce;
}

/* Remove ProStore fixed height / min-height under 1-line titles so description sits snugly below on PC & Mobile */
.bim-sc-home .products__item-title {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 6px !important;
}

/* Helpful 2-line description under product title */
.bim-sc-desc {
    margin: 0 0 14px !important;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: #6c6c70 !important;
    min-height: 40px;
}

/* Bottom Bundle Bar (warm cream + native Roboto 400/500 + clean studio WebP thumbs) */
.bim-sc-bundle {
    margin-top: 18px;
    border-radius: 15px;
    background: linear-gradient(135deg, #fffdf9 0%, #f6ede3 100%);
    border: 1px solid #e5d6c7;
    padding: 17px 22px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 18px rgba(42, 32, 26, 0.05);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.bim-sc-bundle__left {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 18px;
    min-width: 0;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.bim-sc-bundle__thumbs {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    flex-shrink: 0;
}

.bim-sc-bundle__thumb {
    width: 58px;
    height: 58px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #ece5de;
    padding: 4px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(34, 30, 28, 0.06);
}

.bim-sc-bundle__thumb + .bim-sc-bundle__thumb {
    margin-left: -10px;
}

.bim-sc-bundle__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.bim-sc-bundle__info {
    min-width: 0;
}

.bim-sc-bundle__title {
    margin: 0 0 4px !important;
    font-size: 16.5px !important;
    font-weight: 500 !important;
    color: #343434 !important;
    line-height: 1.3 !important;
}

.bim-sc-bundle__desc {
    margin: 0 0 5px !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: #5e5e62 !important;
    line-height: 1.4 !important;
}

.bim-sc-bundle__note {
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #84807c !important;
    line-height: 1.35 !important;
}

.bim-sc-bundle__right {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.bim-sc-bundle__price-box {
    text-align: right;
}

.bim-sc-bundle__price {
    font-size: 21px;
    font-weight: 500;
    color: #343434;
    line-height: 1.15;
    white-space: nowrap;
}

.bim-sc-bundle__old {
    font-size: 13.5px;
    color: #939398;
    text-decoration: line-through;
    text-decoration-color: #d94c4c;
    margin-left: 6px;
    font-weight: 400;
}

.bim-sc-bundle__ship {
    font-size: 12.5px;
    font-weight: 500;
    color: #1f8a4c;
    margin-top: 3px;
    white-space: nowrap;
}

.bim-sc-bundle__btn {
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: #382e2d;
    color: #ffffff;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.18s ease, opacity 0.18s ease;
}

.bim-sc-bundle__btn:hover {
    background: #b45e2a;
}

.bim-sc-bundle__btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.bim-sc-bundle__btn.is-done {
    background: #1f8a4c;
}

@media (max-width: 1024px) {
    .bim-sc-helper {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 6px;
    }
    .bim-sc-bundle {
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-align: stretch;
        align-items: stretch;
        padding: 16px;
        gap: 14px;
    }
    .bim-sc-bundle__right {
        -ms-flex-pack: justify;
        justify-content: space-between;
        border-top: 1px solid rgba(180, 94, 42, 0.14);
        padding-top: 12px;
    }
    .bim-sc-bundle__price-box {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .bim-sc-title {
        font-size: 20px !important;
    }
    .bim-sc-stock-pill {
        font-size: 12px;
        padding: 5px 10px;
    }
    .bim-sc-help-btn {
        padding: 8px 11px;
    }
    .bim-sc-help-q,
    .bim-sc-help-a {
        font-size: 12.5px;
    }
    .bim-sc-desc {
        min-height: 0;
    }
    .bim-sc-bundle__left {
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 10px;
    }
    .bim-sc-bundle__right {
        -ms-flex-direction: column;
        flex-direction: column;
        -ms-flex-align: stretch;
        align-items: stretch;
        gap: 10px;
    }
    .bim-sc-bundle__btn {
        width: 100%;
    }
}