/* ============================================================
   ETS Marketplace – homepage & shared front-office styles
   ============================================================ */

/* ---------- generic helpers ---------- */
main > .alert.alert-warning.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}
.delivery-option p.shop_names {
    border: 1px solid #ddd;
    padding: 8px 10px;
    background: #f6f6f6;
}
.h_14 { height: 14px; }
.w_14 { width: 14px; }
.ets_svg_fill_gray svg {
    fill: #666;
    vertical-align: -1px;
}
@import url('https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');

input[type="file"] {
    max-width: 100%;
    overflow: hidden;
}
iframe {
    max-width: 100% !important;
}

/* ---------- product-miniature tweaks ---------- */
.product-miniature:not(:hover) .highlighted-informations.bottom_calculated {
    bottom: 0 !important;
}
.product-miniature .highlighted-informations.bottom_calculated {
    height: auto !important;
    padding-bottom: 5px;
}
#products .product-description,
.featured-products .product-description,
.product-accessories .product-description,
.product-miniature .product-description {
    height: auto;
    min-height: 70px;
    padding-bottom: 4px;
}
.product-description .product_list_shop_by {
    text-align: center;
    font-size: 14px;
}

/* ---------- review stars ---------- */
.ets_review span {
    display: inline-block;
    color: orange;
}
.ets_review span:before {
    color: orange;
}
.ets_review {
    display: block;
}
.ets_review span:not(.ets_star) {
    color: #777;
}
.ets_review_total {
    font-size: 20px;
    line-height: 1;
    vertical-align: -1px;
    color: #ee9a00;
    display: inline-block;
    vertical-align: middle;
}
.ets_mp_report:hover svg { fill: #40bbd6; }
.ets_mp_report svg { width: 15px; height: 15px; fill: #666; }
.product_review_shop svg {
    fill: #666;
    vertical-align: middle;
    margin-right: 3px;
    width: 15px;
    height: 15px;
}
.product_review_shop .ets_review svg.ets_review_icon {
    fill: orange;
    margin-right: 0;
}

/* ==========================================================
   SECTION: "Produits tendance" & "Products from followed shops"
   Container: .page_seller_follow   |  Grid: #page_seller_follow
   ========================================================== */
.page_seller_follow {
    position: relative;
    clear: both;
    overflow: hidden;          /* contain floated children instead of floating itself */
    width: 100%;
    margin: 30px 0;
    padding: 0 15px;           /* keep content away from edges */
    box-sizing: border-box;
}
.page_seller_follow .products-section-title {
    padding: 0;
    margin-bottom: 20px;
    padding-bottom: 20px;
    text-align: center;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #e5e5e5;
}
.page_seller_follow .products-section-title h2.title {
    font-size: 26px;
    font-weight: 600;
    line-height: 30px;
    position: relative;
    margin-bottom: 2px;
}

/* -- product grid (flex-based, works with or without Slick) -- */
#page_seller_follow {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    position: static;
}

/* Wrapper used in trending_product.tpl */
#page_seller_follow .ets-product-slide {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
#page_seller_follow .ets-product-slide .product-miniature {
    width: 100%;
    float: none;
    padding: 0;
    margin: 0;
}

/* Direct product miniatures (product_seller_follow.tpl – no wrapper div) */
#page_seller_follow > .product-miniature {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
    float: none;
}

.page_seller_follow .product-miniature .thumbnail-container,
.page_seller_follow .product-miniature .highlighted-informations,
.page_seller_follow .product-miniature .product-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* When Slick initializes, let it handle layout */
#page_seller_follow.slick-initialized {
    display: block;
    margin-left: -15px;
    margin-right: -15px;
}
#page_seller_follow.slick-initialized .ets-product-slide,
#page_seller_follow.slick-initialized > .product-miniature {
    width: auto !important;
    padding: 0 15px;
    margin-bottom: 0;
}
.home-top-sellers .slick-track,
.page_seller_follow .slick-track {
    float: left;
}

.page_seller_follow a,
.page_seller_follow button {
    outline: none !important;
}

@media (max-width: 991px) {
    #page_seller_follow .ets-product-slide,
    #page_seller_follow > .product-miniature { width: 33.33%; }
}
@media (max-width: 767px) {
    #page_seller_follow .ets-product-slide,
    #page_seller_follow > .product-miniature { width: 50%; }
}
@media (max-width: 479px) {
    #page_seller_follow .ets-product-slide,
    #page_seller_follow > .product-miniature { width: 100%; }
}

/* ==========================================================
   SECTION: follow-title (shared between sellers & products)
   ========================================================== */
h4.follow-title {
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width: 100%;
    line-height: 1.7;
    font-weight: 600;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 17px;
}

/* ==========================================================
   SECTION: "Top shops" / "Followed shops" – seller grid
   ========================================================== */
.home-top-sellers {
    position: relative;
    clear: both;
    overflow: hidden;
    width: 100%;
    margin-bottom: 30px;
}
div#page_home_top_seller,
div#page_home_followed_seller {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    margin-left: -15px;
    margin-right: -15px;
    position: static;
}
div#page_home_top_seller .seller-miniature,
div#page_home_followed_seller .seller-miniature {
    padding-left: 15px;
    padding-right: 15px;
    outline: none !important;
    width: 25%;
    box-sizing: border-box;
    float: none;
}
/* When Slick initializes */
div#page_home_top_seller.slick-initialized,
div#page_home_followed_seller.slick-initialized {
    display: block;
}
div#page_home_top_seller.slick-initialized .seller-miniature,
div#page_home_followed_seller.slick-initialized .seller-miniature {
    width: auto !important;
}

#page_home_top_seller .seller-description,
#page_home_followed_seller .seller-description { text-align: center; }
#page_home_top_seller .seller-description a,
#page_home_followed_seller .seller-description a {
    display: block;
    text-align: center;
    outline: none !important;
    text-decoration: none !important;
}

.seller-miniature .thumbnail-container {
    background: #fff;
    padding: 10px 10px 15px;
    box-shadow: 2px 2px 8px 0 rgba(0,0,0,.2);
    height: 100%;
    margin: 10px 0 15px;
}
.seller-miniature .seller-description {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 15px;
    padding-right: 15px;
    box-shadow: 0 -3px 3px 0 #eee;
}
a.thumbnail.seller-thumbnail {
    margin-bottom: 15px;
    display: block;
    text-align: center;
    outline: none !important;
}
a.thumbnail.seller-thumbnail img {
    display: inline-block;
    max-width: 100%;
}
.seller-miniature a.thumbnail.seller-thumbnail {
    text-align: center;
}

@media (max-width: 991px) {
    div#page_home_top_seller .seller-miniature,
    div#page_home_followed_seller .seller-miniature { width: 33.33%; }
}
@media (max-width: 767px) {
    div#page_home_top_seller .seller-miniature,
    div#page_home_followed_seller .seller-miniature { width: 50%; }
    .home-top-sellers {
        margin-bottom: 70px;
    }
}
@media (max-width: 479px) {
    div#page_home_top_seller .seller-miniature,
    div#page_home_followed_seller .seller-miniature { width: 100%; }
}

/* ==========================================================
   Slick arrow buttons (shared)
   ========================================================== */
#page_seller_follow button.slick-arrow,
.home-top-sellers button.slick-arrow,
.ets_market_products button.slick-arrow,
.page_seller_follow button.slick-arrow {
    border: none;
    z-index: 1;
    top: 0;
    outline: none !important;
    transform: none;
    margin-top: 0;
    background-color: #D4D4D4;
    font-size: 0;
    height: 24px;
    position: absolute;
    line-height: 24px;
    margin-left: 5px;
    width: 24px;
    right: 0;
    cursor: pointer;
    transition: all 0.3s;
}
.ets_market_products button.slick-arrow {
    margin-right: 15px;
}
#page_seller_follow button.slick-arrow:before,
.ets_market_products button.slick-arrow:before,
.home-top-sellers button.slick-arrow:before,
.page_seller_follow button.slick-arrow:before {
    width: 8px;
    height: 8px;
    content: "";
    border-top: 1px solid #333;
    border-right: 1px solid #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%,-50%,0) rotate(-135deg);
    margin-left: 1px;
}
#page_seller_follow button.slick-arrow.slick-prev,
.home-top-sellers button.slick-arrow.slick-prev,
.page_seller_follow button.slick-arrow.slick-prev {
    margin-right: 29px;
    left: auto;
}
.ets_market_products button.slick-arrow.slick-prev {
    margin-right: 44px;
}
#page_seller_follow button.slick-arrow.slick-next:before,
.ets_market_products button.slick-arrow.slick-next:before,
.home-top-sellers button.slick-arrow.slick-next:before,
.page_seller_follow button.slick-arrow.slick-next:before {
    transform: translate3d(-50%,-50%,0) rotate(45deg);
    left: 9px;
}
#page_seller_follow button.slick-arrow:hover,
.ets_market_products button.slick-arrow:hover,
.home-top-sellers button.slick-arrow:hover,
.page_seller_follow button.slick-arrow:hover {
    background: #2FB5D2;
    border-color: #2FB5D2;
}
#page_seller_follow button.slick-arrow:hover:before,
.ets_market_products button.slick-arrow:hover:before,
.home-top-sellers button.slick-arrow:hover:before,
.page_seller_follow button.slick-arrow:hover:before {
    border-color: #fff;
}

/* Slick arrows mobile */
@media (max-width: 767px) {
    #page_seller_follow button.slick-arrow,
    .ets_market_products button.slick-arrow,
    .page_seller_follow button.slick-arrow {
        bottom: 0;
        top: auto;
        margin-top: 20px;
        margin-bottom: -20px;
        left: 50%;
        margin-left: 0;
        right: auto;
    }
    #page_seller_follow button.slick-arrow.slick-prev,
    .page_seller_follow button.slick-arrow.slick-prev {
        margin-right: 3px;
        right: 50%;
        left: auto;
    }
    div#page_seller_follow {
        margin-bottom: 60px;
    }
    .ets_market_products button.slick-arrow.slick-prev {
        margin-right: 0;
        margin-left: -29px;
    }
    .home-top-sellers button.slick-arrow.slick-prev {
        left: auto;
        right: 50%;
        margin-right: 2px;
    }
    .home-top-sellers button.slick-arrow {
        position: absolute;
        bottom: -30px;
        top: auto;
        left: 50%;
        right: auto;
        margin: 0 2px;
    }
}

/* ==========================================================
   Seller detail box (product page & shop page)
   ========================================================== */
.mp_shop_seller_detail {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
}
.mp_shop_seller_detail .shop_logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 0 3px 0 #ccc;
    overflow: hidden;
    margin-right: 20px;
}
.mp_shop_seller_detail .mp_left_content {
    display: flex;
    align-items: center;
}
.mp_shop_seller_detail .name {
    display: block;
    margin-bottom: 12px;
}
.mp_right_content {
    text-align: left;
    font-size: 15px;
}
.mp_shop_seller_detail .product {
    display: block;
    font-size: 13px;
    column-count: 2;
    margin-bottom: 10px;
}
.mp_shop_seller_detail .product .total,
.product_review_shop .total { line-height: 1; }
.mp_shop_seller_detail .product .total + .ets_review,
.product_review_shop .total + .ets_review { color: #777; }
.mp_shop_seller_detail .product .ets_review .ets_star { color: orange; }
.mp_shop_seller_detail span.total_review,
.product_review_shop span.total_review {
    font-size: 90%;
    margin-left: 2px;
    color: #777;
}
.mp_shop_seller_detail a.mp_link_contact_form {
    display: inline-block;
    padding: 6px 10px;
    margin-top: 5px;
    border-radius: 3px;
    font-size: 15px;
    box-shadow: none;
    font-weight: normal;
    text-transform: none;
}
.mp_shop_seller_detail a.mp_link_contact_form:not(:hover) {
    color: #7a7a7a;
    border: 1px solid #ccc;
    background: #fff;
}
.mp_shop_seller_detail a.mp_link_contact_form:before { margin-left: 0; }
.modal-footer + .mp_shop_seller_detail {
    margin-left: 15px;
    margin-right: 15px;
}
.product_review_shop ~ button.ets_mp_report {
    margin-top: 5px;
    border-radius: 3px;
    font-weight: normal;
    height: 33px;
    padding: 0 15px;
    text-transform: none;
}
.product_review_shop .col {
    padding-right: 0;
    margin-bottom: 10px;
    line-height: 1;
}
.product_review_shop .col:last-child { border-right: none; }
.col.shop_date_add:last-child { padding-right: 0; }
.product-line-info .shop_seller_infor {
    font-size: 14px;
    margin: 5px 0;
    color: #999;
}
a.mp_link_contact_form svg {
    width: 14px;
    fill: currentColor;
    margin-right: 5px;
    vertical-align: -2px;
    height: 14px;
}
.contact-form form#form-contact-seller { color: #333; }
.contact-form .form-footer.text-sm-right {
    text-align: right;
    display: block;
}

@media (max-width: 991px) {
    .mp_shop_seller_detail .product.product_review_shop { column-count: 1; }
}
@media (max-width: 479px) {
    .mp_shop_seller_detail { flex-wrap: wrap; }
    .mp_shop_seller_detail .mp_left_content {
        margin-bottom: 10px;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    .mp_shop_seller_detail .mp_right_content {
        text-align: center;
        width: 100%;
    }
    .mp_shop_seller_detail .mp_left_content .shop_logo { margin-right: 0; }
    #form-contact-seller .form-footer { text-align: center; }
    #form-contact-seller .form-footer .link_contact_back,
    #form-contact-seller .form-footer .btn {
        float: none;
        margin: 5px 10px;
        display: inline-block;
    }
}

/* ==========================================================
   "ets_market_products" – shop page product slider
   ========================================================== */
.featured-products.ets_market_products { margin-top: 30px; margin-bottom: 0; }
.ets_mp_products_other { padding-bottom: 20px; }
.ets_market_products .follow-title a { margin-left: 5px; }
.ets_market_products .ets_marketpllce_product_list_wrapper .slick-list { width: 100%; }
.ets_market_products a { outline: none !important; }
.ets_market_products .slick-slide .thumbnail-container,
.ets_market_products .slick-slide .thumbnail-container .product-description,
.ets_market_products .slick-slide .thumbnail-container .highlighted-informations {
    max-width: 100%;
}
.ets_market_products .right-block { text-align: center; }
.ets_mp_products_other .product_list_shop_by { display: none; }

/* -- product list wrapper (CSS grid – no Slick) -- */
.ets_marketpllce_product_list_wrapper {
    position: static;
}
.ets_marketpllce_product_list_wrapper.ets-mp-grid {
    display: flex !important;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.ets_marketpllce_product_list_wrapper.ets-mp-grid > .product,
.ets_marketpllce_product_list_wrapper.ets-mp-grid > .product-miniature,
.ets_marketpllce_product_list_wrapper.ets-mp-grid > article {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}
/* When only 1-3 products, let them be bigger (max 33%) */
.ets_marketpllce_product_list_wrapper.ets-mp-grid > .product:only-child,
.ets_marketpllce_product_list_wrapper.ets-mp-grid > .product-miniature:only-child {
    flex: 0 0 25%;
    max-width: 25%;
}
.ets_marketpllce_product_list_wrapper .product-miniature .thumbnail-container,
.ets_marketpllce_product_list_wrapper .product-miniature .product-description,
.ets_marketpllce_product_list_wrapper .product-miniature .highlighted-informations {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.ets_marketpllce_product_list_wrapper .product-miniature.js-product-miniature {
    outline: none;
    margin: 0 !important;
    padding: 0;
    width: 100%;
}

@media (max-width: 991px) {
    .ets_marketpllce_product_list_wrapper.ets-mp-grid > .product,
    .ets_marketpllce_product_list_wrapper.ets-mp-grid > .product-miniature,
    .ets_marketpllce_product_list_wrapper.ets-mp-grid > article { flex: 0 0 33.33%; max-width: 33.33%; }
}
@media (max-width: 767px) {
    .ets_marketpllce_product_list_wrapper.ets-mp-grid > .product,
    .ets_marketpllce_product_list_wrapper.ets-mp-grid > .product-miniature,
    .ets_marketpllce_product_list_wrapper.ets-mp-grid > article { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 479px) {
    .ets_marketpllce_product_list_wrapper.ets-mp-grid > .product,
    .ets_marketpllce_product_list_wrapper.ets-mp-grid > .product-miniature,
    .ets_marketpllce_product_list_wrapper.ets-mp-grid > article { flex: 0 0 100%; max-width: 100%; }
}

/* -- product page seller products -- */
#product_page_seller_follow { position: static; }
#product_page_seller_follow .product-container { position: relative; margin-bottom: 15px; }
#product_page_seller_follow .product-container .product-desc { display: none; }

/* ==========================================================
   PS 1.6 product list styles (legacy)
   ========================================================== */
.page_seller_follow ul.product_list .product-image-container {
    text-align: center;
    border: 1px solid #d6d4d4;
    position: relative;
    color: #fff;
}
.page_seller_follow .product_list li .product-container h5 {
    padding: 0 15px 7px 15px;
    min-height: 53px;
}
.page_seller_follow ul.product_list .right-block { text-align: center; }
.page_seller_follow li:hover .product-container .content_price { display: none; }
.page_seller_follow li:hover .product-container .product-image-container .content_price { display: block; }
.page_seller_follow .button-container { margin-bottom: 14px; }
.page_seller_follow .product_list li:hover .product-image-container .quick-view { display: block; }
.page_seller_follow ul.product_list .product-image-container .price.product-price { color: #fff; }
.page_seller_follow .product-container .product-image-container .content_price {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    background: #4a4a4a;
    padding: 9px 0;
    display: none;
}
.page_seller_follow ul.product_list.grid li:hover .product-container {
    box-shadow: rgba(0,0,0,.17) 0 0 13px;
    position: relative;
    z-index: 10;
}
.page_seller_follow ul.product_list .product-container .content_price {
    padding-bottom: 9px;
    line-height: 21px;
}

/* PS 1.6 ets_market_products list */
.ets_market_products ul.product_list.grid li .product-container:hover .product-image-container .content_price { display: block; }
.ets_market_products ul.product_list.grid li .product-container .product-image-container .content_price {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    background: rgba(0,0,0,.8);
    padding: 9px 0;
    display: none;
}
.ets_market_products ul.product_list.grid li .product-container .product-image-container {
    border: 1px solid #d6d4d4;
    padding: 9px;
    margin-bottom: 13px;
    position: relative;
}
.ets_market_products ul.product_list.grid li .product-container h5 {
    padding: 0 15px 7px 15px;
    min-height: 53px;
}
.ets_market_products ul.product_list.grid li .product-container .product-desc { display: none; }
.ets_market_products ul.product_list.grid li .product-container .content_price {
    padding-bottom: 9px;
    line-height: 21px;
}
.ets_market_products ul.product_list.grid li .product-container .old-price,
.ets_market_products ul.product_list.grid li .product-container .price,
.ets_market_products ul.product_list.grid li .product-container .price-percent-reduction {
    display: inline-block;
}
.ets_market_products ul.product_list.grid li .product-container .button-container { display: none; margin-bottom: 14px; }
.ets_market_products ul.product_list.grid li .product-container .button-container .ajax_add_to_cart_button,
.ets_market_products ul.product_list.grid li .product-container .button-container span.button,
.ets_market_products ul.product_list.grid li .product-container .button-container .lnk_view {
    margin: 0 6px 10px 6px;
}
.ets_market_products ul.product_list.grid li .product-container .functional-buttons { display: none; padding: 11px 0 5px; }
.ets_market_products ul.product_list.grid li .product-container .functional-buttons div {
    width: 50%;
    float: left;
    padding: 3px 0 4px 0;
}
.ets_market_products ul.product_list.grid li .product-container .product-image-container .content_price .price.product-price { color: #fff; }
