/* BRW_STULYA_MOBILE_LIST_V48 — mattress-like mobile card, stulya only */

.tile {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
}

.tile .img,
.tile a.img {
    display: block;
    width: 100%;
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    overflow: hidden !important;
    background: #fff;
}

.tile .img .masterslider-cat,
.tile .img .ms-container,
.tile .img .ms-view,
.tile .img .ms-slide {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
}

.tile .img img,
.tile a.img > img,
.tile .masterslider-cat img,
.tile .ms-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 260px !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.tile .footer.card-info {
    padding-top: 0 !important;
}

.tile .card-info__head {
    padding: 8px 10px 4px !important;
    margin: 0 !important;
}

.tile .card-info__head-wrapp {
    margin: 0 !important;
}

.tile .card-info__name {
    display: block;
    margin: 0 !important;
    line-height: 1.35;
}

.tile .card-info__sub {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 5px 10px 10px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.tile .card-info__description.add-products {
    display: none !important;
}

.tile .card-info__price.add-price {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* V47 renders the authoritative chair price itself.
   Hide the legacy async/best-price badge so only one price remains. */
.tile .price-wrapp,
.tile [data-bestpriceprocess] {
    display: none !important;
}

.brw-stulya-mobile-commerce {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.brw-stulya-mobile-price {
    display: inline-block;
    margin-right: auto;
    white-space: nowrap;
    font-weight: 700;
    line-height: 36px;
}

.brw-stulya-mobile-buy {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto !important;
    white-space: nowrap;
}

/* BRW_STULYA_SEARCH_LIKE_PAGER_V61_2
 * Local chair pagination visually aligned with the BRW mobile search pager.
 */
.brw-stulya-search-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 7px;
    width: 100%;
    margin: 38px auto 34px;
    padding: 0 12px;
    box-sizing: border-box;
}

.brw-stulya-search-pager__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 45px;
    width: 45px;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid #d9dde2;
    border-radius: 5px;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none;
}

.brw-stulya-search-pager__item:hover,
.brw-stulya-search-pager__item:focus {
    color: #111;
    text-decoration: none !important;
}

.brw-stulya-search-pager__item--active {
    border-color: #dc1d26;
    background: #dc1d26;
    color: #fff;
    font-weight: 600;
}

.brw-stulya-search-pager__item--active:hover,
.brw-stulya-search-pager__item--active:focus {
    color: #fff;
}

.brw-stulya-search-pager__arrow {
    font-size: 22px;
    font-weight: 300;
}

.brw-stulya-search-pager__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 46px;
    color: #777;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 389px) {
    .brw-stulya-search-pager {
        gap: 5px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .brw-stulya-search-pager__item {
        flex-basis: 41px;
        width: 41px;
        height: 44px;
    }

    .brw-stulya-search-pager__ellipsis {
        flex-basis: 19px;
        width: 19px;
        height: 44px;
    }
}

/* BRW_LIST_UI_V1 — smaller category price + red buy button */
.brw-stulya-mobile-list-price-ticket .price-numbers {
    font-size: 22px !important;
    line-height: 1.1 !important;
}

.brw-stulya-mobile-buy {
    border-color: #df1d2f !important;
    background: #df1d2f !important;
    background-image: none !important;
    color: #ffffff !important;
}

.brw-stulya-mobile-buy:hover,
.brw-stulya-mobile-buy:focus,
.brw-stulya-mobile-buy:active {
    border-color: #c91828 !important;
    background: #c91828 !important;
    background-image: none !important;
    color: #ffffff !important;
}
/* /BRW_LIST_UI_V1 */

/* BRW_MOBILE_CATEGORY_CARD_CLEANUP_V3 */

/* Extra historical button stays disabled. */
.brw-stulya-mobile-buy {
    display: none !important;
}

/*
 * Stable footer:
 * price locked left, basket button locked right.
 */
.tile .card-info__price.add-price {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 12px !important;
}

/*
 * Flat BRW price.
 * Important V3 change:
 * do NOT stretch price across the remaining row.
 */
.brw-stulya-mobile-list-price-ticket {
    position: static !important;

    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;

    flex: 0 0 auto !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 auto 0 0 !important;
    padding: 0 !important;

    transform: none !important;

    background: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
    text-shadow: none !important;

    color: #333 !important;

    font-size: 13px !important;
    line-height: 1.1 !important;

    text-align: left !important;
    white-space: nowrap !important;
}

.brw-stulya-mobile-list-price-ticket::before,
.brw-stulya-mobile-list-price-ticket::after {
    display: none !important;
    content: none !important;
}

.brw-stulya-mobile-list-price-ticket .price-numbers {
    display: inline-block !important;

    margin: 0 4px 0 0 !important;
    padding: 0 !important;

    color: #2f2f2f !important;

    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;

    letter-spacing: -0.3px !important;

    text-align: left !important;
    text-shadow: none !important;
}

/* Authoritative native basket button. */
.tile a[id^="add-to-card-btn__"].add-cart-btn {
    position: static !important;
    float: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    width: auto !important;
    min-width: 138px !important;
    max-width: 155px !important;

    height: 46px !important;

    margin: 0 0 0 auto !important;
    padding: 0 16px !important;

    transform: none !important;

    border: 0 !important;
    border-radius: 5px !important;

    background: #df1d2f !important;
    background-image: none !important;

    box-shadow: none !important;

    color: #fff !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 46px !important;

    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;

    white-space: nowrap !important;
}

.tile a[id^="add-to-card-btn__"].add-cart-btn:hover,
.tile a[id^="add-to-card-btn__"].add-cart-btn:focus,
.tile a[id^="add-to-card-btn__"].add-cart-btn:active {
    background: #c91828 !important;
    background-image: none !important;

    color: #fff !important;
    text-decoration: none !important;
}

/* Filters still paused; sorting remains. */
.filter-body__link[href="#fastFilter"],
#fastFilter {
    display: none !important;
}

.filter-body__select-wrapper {
    width: 100% !important;
    max-width: none !important;
}

/* /BRW_MOBILE_CATEGORY_CARD_CLEANUP_V3 */
