/* Opt-in only: Maestre/Mall keep their multistore data and original card widths. */
.marketplace-skin .marketplace-header {
    height: auto !important;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 99;
}

.marketplace-header .marketplace-header-grid,
.marketplace-header .marketplace-header-content-row,
.marketplace-header .marketplace-header-controls {
    margin: 0;
}

.marketplace-header .marketplace-header-controls {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 230px 200px;
}

.marketplace-header .marketplace-header-search,
.marketplace-header .header__cart,
.marketplace-header .div_cont_user {
    float: none;
    left: auto !important;
    margin: 0 !important;
    max-width: none;
    min-width: 0;
    padding: 0 !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 100%;
}

.marketplace-header .header__cart .header-cart-heart {
    margin: 0 !important;
    max-width: none;
    padding: 0 !important;
    position: static !important;
    width: 100%;
}

.marketplace-header .header__cart ul.store-header-actions {
    align-items: flex-start;
    display: flex;
    gap: 4px;
    justify-content: space-between;
    list-style: none;
}

.marketplace-header .header__cart .store-header-action-item {
    display: block !important;
    flex: 1 1 0;
    height: auto;
    margin: 0 !important;
    min-width: 0;
    padding: 0;
    position: relative !important;
    text-align: center;
}

.marketplace-header .header__cart a.store-header-action {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    font-size: 24px !important;
    height: auto;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    padding: 0;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
}

.marketplace-header .store-header-action::before {
    display: block;
    height: 28px;
    line-height: 28px;
}

.marketplace-header .header__cart .store-header-action__label {
    color: inherit;
    display: block !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 14px;
    margin: 3px 0 0;
    position: static;
    white-space: nowrap;
}

.marketplace-header .header__cart .store-header-action .store-header-action__badge {
    align-items: center;
    background: var(--mdi-header-badge-bg, var(--primary, #007bff)) !important;
    border: 0;
    border-radius: 50%;
    color: var(--mdi-header-badge-text, #fff) !important;
    display: inline-flex !important;
    font: 700 9px/1 Arial, Helvetica, sans-serif;
    height: 16px !important;
    justify-content: center;
    left: calc(50% + 3px) !important;
    margin: 0 !important;
    padding: 0;
    position: absolute;
    right: auto !important;
    top: -4px !important;
    transform: none;
    width: 16px !important;
}

html body .marketplace-header .store-header-action,
html body .marketplace-header .store-header-action::before,
html body .marketplace-header .hero__search .fa-search,
html body .marketplace-header .hero__search .fa-search::before,
html body .marketplace-header .header__top__right__auth > a > i,
html body .marketplace-header .humberger__open > i,
html body .marketplace-header .mk-header__address i {
    color: var(--mdi-header-icon-color, #585858) !important;
}

.marketplace-header .header-desktop-cart-total {
    color: var(--mdi-header-text-color, inherit);
    display: block;
    float: none;
    font: 12px/18px Arial, Helvetica, sans-serif;
    margin: 6px 0 0;
    position: static;
    text-align: center;
    white-space: nowrap;
}

.marketplace-header .header-desktop-cart-total .cartbagtotal {
    background: transparent !important;
    color: inherit;
    display: inline !important;
    font: inherit;
    height: auto;
    margin: 0 !important;
    position: static !important;
    width: auto !important;
}

.marketplace-header .header__top__right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
    margin: 0;
    width: 100%;
}

.marketplace-header .header__top__right__auth {
    margin: 0;
}

.marketplace-header .header__top__right__auth > a {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.marketplace-header #user-list {
    right: 0;
    z-index: 101;
}

.marketplace-header .hero__search,
.marketplace-header .hero__search__form,
.marketplace-header .hero__search__form form {
    float: none;
    margin: 0 !important;
    max-width: 100%;
    position: relative;
    width: 100%;
}

.marketplace-header .hero__search__form form input {
    box-sizing: border-box;
    padding-right: 48px;
    width: 100%;
}

.marketplace-header .hero__search__form form button {
    right: 0;
    top: 0;
    width: 44px;
}

.marketplace-skin .humberger__menu__wrapper > .humberger__menu__close {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    color: #495057 !important;
    display: flex !important;
    height: 40px;
    justify-content: center;
    padding: 0;
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    width: 40px;
    z-index: 100;
}

.marketplace-skin .humberger__menu__close svg {
    display: block;
    height: 20px;
    width: 20px;
}

.marketplace-skin .store-header-action:focus-visible,
.marketplace-skin .humberger__menu__close:focus-visible {
    outline: 2px solid var(--primary, #007bff);
    outline-offset: 3px;
}

/* One full-width action per row, also for AJAX/custom and grouped search cards. */
.marketplace-skin :is(.promotion__slider, .categories__slider, .detail_card_relation, .item_card_presentation, .partner__items_res) .featured__item:not(.item_category):not(.div_card_cen) {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 440px !important;
    max-height: none !important;
    overflow: hidden;
    position: relative !important;
}

.marketplace-skin :is(.promotion__slider, .categories__slider, .detail_card_relation, .item_card_presentation, .partner__items_res) .featured__item > a {
    box-sizing: border-box;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 106px !important;
    position: static !important;
}

.marketplace-skin :is(.promotion__slider, .categories__slider, .detail_card_relation, .item_card_presentation, .partner__items_res) .featured__item__text {
    flex: 1;
}

.marketplace-skin :is(.promotion__slider, .categories__slider, .detail_card_relation, .item_card_presentation, .partner__items_res) .featured__item__pic__hover {
    align-items: stretch !important;
    background: transparent !important;
    bottom: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    height: auto !important;
    left: 10px !important;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
    position: absolute !important;
    right: 10px !important;
    top: auto !important;
    transform: none !important;
    visibility: visible !important;
    width: auto !important;
    z-index: 30;
}

.marketplace-skin .featured__item .featured__item__pic__hover > :is(li, a, .carousel-action) {
    background: transparent !important;
    display: flex !important;
    flex: 0 0 40px !important;
    height: 40px !important;
    margin: 0 !important;
    min-height: 40px !important;
    min-width: 0;
    padding: 0 !important;
    position: static !important;
    width: 100% !important;
}

.marketplace-skin .featured__item .featured__item__pic__hover :is(.addCart, .addQuote, .btn_fake) {
    align-items: center !important;
    border-radius: 25px !important;
    box-sizing: border-box !important;
    cursor: pointer;
    display: flex !important;
    flex: 0 0 auto;
    font-size: 16px !important;
    font-weight: 700 !important;
    height: 40px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 40px !important;
    padding: 0 8px !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
}

.marketplace-skin .featured__item .featured__item__pic__hover .addCart {
    background: var(--mdi-action-add-bg, var(--primary, #007bff)) !important;
    border: 2px solid var(--mdi-action-add-border, var(--primary, #007bff)) !important;
    color: var(--mdi-action-add-text, #fff) !important;
}

.marketplace-skin .featured__item .featured__item__pic__hover .addQuote {
    background: var(--mdi-action-quote-bg, #fff) !important;
    border: 2px solid var(--mdi-action-quote-border, var(--primary, #007bff)) !important;
    color: var(--mdi-action-quote-text, var(--primary, #007bff)) !important;
}

.marketplace-skin .featured__item .featured__item__pic__hover .btn_fake {
    background: var(--secondary, #8a8a8a) !important;
    border: 2px solid var(--secondary, #8a8a8a) !important;
    color: #fff !important;
    cursor: not-allowed;
}

.marketplace-skin .featured__item__pic__hover :is(.addCart, .addQuote, .btn_fake) :is(i, span) {
    color: inherit !important;
    font: inherit !important;
    line-height: 1 !important;
    position: static !important;
    text-align: center;
}

.marketplace-skin .product__details__text .quote-action-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    width: 100%;
}

.marketplace-skin .product__details__text .quote-action-list .btn_shop_car {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 44px;
    width: 100% !important;
}

.marketplace-skin :is(.promotion__slider, .categories__slider, .detail_card_relation, .item_card_presentation, .item_card_p, .partner__items_res) .featured__item.marketplace-product-card:not(.item_category):not(.div_card_cen) {
    min-height: 490px !important;
    padding: 10px;
    width: 270px;
    max-width: 100% !important;
    min-width: 0 !important;
}

.marketplace-skin .marketplace-product-card > a {
    text-decoration: none;
}

.marketplace-skin .marketplace-product-card .img-center {
    align-items: center;
    display: flex;
    height: 160px;
    justify-content: center;
}

.marketplace-skin .marketplace-product-card .img-center img {
    height: 140px !important;
    margin: 10px 0;
    max-width: 100%;
    object-fit: contain;
    width: auto !important;
}

.marketplace-skin .marketplace-product-card .div_name {
    height: 40px !important;
    margin-bottom: 4px;
    overflow: hidden;
}

.marketplace-skin .marketplace-product-card .div_title {
    display: -webkit-box;
    font-size: 15px;
    line-height: 20px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.marketplace-skin .marketplace-product-card :is(.brand_title, .name_company_card) {
    display: block !important;
    font-size: 12px;
    line-height: 18px;
    margin: 0;
    min-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-skin .marketplace-product-card .marketplace-product-card__prices {
    align-content: center;
    min-height: 100px;
}

.marketplace-skin .marketplace-product-card :is(.num_prom, .sale_price_carousel) {
    font-size: 22px;
    line-height: 26px;
    margin: 0;
    text-align: center;
}

.marketplace-skin .marketplace-product-card :is(.res_prices, .prices_prev, .price_united, .measure_unit) {
    display: block !important;
    font-size: 12px;
    line-height: 18px;
    margin: 0;
    text-align: center;
}

.marketplace-skin .marketplace-product-card .prices_prev {
    text-decoration: line-through;
}

.marketplace-skin .marketplace-product-card .botton_prom {
    display: flex;
    left: 10px;
    position: absolute;
    right: auto;
    top: 10px;
    z-index: 2;
}

.marketplace-skin .marketplace-product-card .addFvoriteHover {
    opacity: 1;
    visibility: visible;
}

/* Keep desktop icons and their badges clear of the header's upper edge. */
@media (min-width: 992px) {
    .marketplace-header .marketplace-header-controls {
        padding-top: 10px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .marketplace-header .marketplace-header-controls {
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) 210px 150px;
    }
}

@media (max-width: 991px) {
    .marketplace-header .marketplace-header-grid {
        align-items: start;
        display: grid;
        column-gap: 4px;
        grid-template-columns: 34px minmax(36px, 1fr) minmax(0, 180px) 30px;
        padding: 12px 8px 10px;
        row-gap: 24px;
    }

    .marketplace-header .marketplace-header-content,
    .marketplace-header .marketplace-header-content-row,
    .marketplace-header .marketplace-header-content-inner,
    .marketplace-header .marketplace-header-controls {
        display: contents;
    }

    .marketplace-header .marketplace-header-brand {
        grid-column: 2;
        grid-row: 1;
        height: 38px !important;
        max-width: none;
        min-width: 0;
        padding: 0;
        width: 100%;
    }

    .marketplace-header .header__logo {
        height: 38px;
        margin: 0;
        min-height: 0;
        padding: 0;
        width: 100%;
    }

    .marketplace-header .header__logo img {
        inset: auto;
        margin: 0 !important;
        max-height: 38px;
        max-width: 40px;
        object-fit: contain;
        position: static;
        transform: none;
    }

    .marketplace-header .header__logo .fav_logo {
        display: none;
    }

    .marketplace-header .header__logo .favicon_log {
        display: flex;
    }

    .marketplace-header .humberger__open {
        align-items: center;
        display: flex !important;
        height: 34px !important;
        justify-content: center;
        left: 8px !important;
        margin: 0;
        position: absolute;
        top: 12px !important;
        width: 34px !important;
    }

    .marketplace-header .header__cart {
        grid-column: 3;
        grid-row: 1;
        width: auto;
    }

    .marketplace-header .header__cart .store-header-action__label {
        font-size: 9px;
        line-height: 12px;
    }

    .marketplace-header .div_cont_user {
        grid-column: 4;
        grid-row: 1;
        width: 30px;
    }

    .marketplace-header .header__top__right,
    .marketplace-header .header__top__right__auth {
        align-items: center;
        display: flex;
        inset: auto !important;
        margin: 0 !important;
        padding: 0;
        position: relative !important;
    }

    .marketplace-header .header__top__right__auth.Reg_sesion,
    .marketplace-header .header__top__right__auth .div_use,
    .marketplace-header #user-link > .fa-angle-down {
        display: none !important;
    }

    .marketplace-header .header__top__right__auth > a {
        height: 30px;
        justify-content: center;
        padding: 0;
    }

    .marketplace-header .header__top__right__auth > a > i {
        font-size: 24px;
        inset: auto !important;
        margin: 0 !important;
        position: static !important;
    }

    .marketplace-header .marketplace-header-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .marketplace-header .hero__search,
    .marketplace-header .hero__search__form,
    .marketplace-header .hero__search__form form,
    .marketplace-header .hero__search__form form input,
    .marketplace-header .hero__search__form form button {
        height: 40px;
        top: auto !important;
    }

    .marketplace-header .hero__search__form form input {
        font-size: 13px;
        padding-left: 12px;
    }

    .marketplace-header .hero__search__form form button {
        top: 0 !important;
    }

    .marketplace-header .mk-header__address {
        grid-column: 1 / -1;
        grid-row: 3;
        height: auto;
        margin: 0;
        min-width: 0;
        position: static;
        width: 100%;
    }

    .marketplace-header .mk-header__address .delivery_h_r {
        display: none !important;
    }

    .marketplace-header .mk-header__address .cs2 {
        background: transparent;
        border: 0;
        border-radius: 0;
        display: flex;
        height: auto;
        inset: auto;
        margin: 0;
        max-width: 100%;
        padding: 0;
        position: static;
        width: 100%;
    }

    .marketplace-header .mk-address-text {
        display: block !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .marketplace-header .modal_switch,
    .marketplace-header .modal_switch2 {
        left: 50%;
        max-width: calc(100vw - 24px);
        right: auto;
        transform: translate(-50%, -50%);
    }
}