/*
Theme Name: BabibiModel Porto Child
Theme URI: https://babibimodel.com/
Description: BabibiModel'in Porto tabanli ozel tasarim ve performans gelistirmeleri icin child theme.
Author: BabibiModel
Author URI: https://babibimodel.com/
Template: porto
Version: 1.1.3
Text Domain: babibimodel-porto-child
*/

/* The EN/TR front pages no longer use Porto's left category/filter sidebar.
   Keep archive and shop sidebars unchanged. */
body.home .main-content-wrap > .porto-home-sidebar,
body.page-id-2 .main-content-wrap > .porto-home-sidebar,
body.page-id-4803 .main-content-wrap > .porto-home-sidebar {
    display: none !important;
}

body.home .main-content-wrap > .main-content,
body.page-id-2 .main-content-wrap > .main-content,
body.page-id-4803 .main-content-wrap > .main-content {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* WooCommerce category sidebar: Scale, Build Model and Kit Recommendations. */
.porto-woo-category-sidebar .widget_layered_nav {
    margin: 0 0 14px !important;
    padding: 14px 15px 16px !important;
    border: 1px solid #dfe4e8 !important;
    border-left: 3px solid #f47a20 !important;
    border-radius: 5px;
    background: #f7f9fb;
    box-shadow: 0 3px 12px rgba(23, 33, 43, .05);
}

.porto-woo-category-sidebar .widget_layered_nav .widgettitle,
.porto-woo-category-sidebar .widget_layered_nav .widget-title {
    margin: 0 0 10px !important;
    color: #17212b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .03em;
}

.porto-woo-category-sidebar .widget_layered_nav .widget-title .toggle {
    color: #f47a20 !important;
}

.porto-woo-category-sidebar .widget_layered_nav select.woocommerce-widget-layered-nav-dropdown {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #cbd5dc !important;
    border-radius: 4px;
    background-color: #fff !important;
    color: #17212b !important;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

.porto-woo-category-sidebar .widget_layered_nav select.woocommerce-widget-layered-nav-dropdown:hover,
.porto-woo-category-sidebar .widget_layered_nav select.woocommerce-widget-layered-nav-dropdown:focus {
    border-color: #f47a20 !important;
    box-shadow: 0 0 0 3px rgba(244, 122, 32, .16) !important;
    outline: none;
}

/* Design 4 archive-card styling copied from the staging Porto product builder.
   The existing Porto Custom CSS stays in the database; do not duplicate it here. */
.porto-tb-item .product-type-advanced {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #dfe4e8;
    border-bottom: 4px solid #17212b;
}

.porto-tb-item .product-type-advanced > .product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 18px !important;
    text-align: left !important;
}

.porto-tb-item .product-type-advanced .tb-meta-product-cat {
    margin-bottom: 7px;
    color: #9aa3aa;
    font-size: 10px;
    font-weight: 700;
}

.porto-tb-item .product-type-advanced h3.post-title {
    display: -webkit-box !important;
    height: 44px;
    margin: 0 0 10px !important;
    overflow: hidden;
    color: #17212b !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
    text-align: left !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.porto-tb-item .product-type-advanced .tb-woo-rating {
    display: none !important;
}

.porto-tb-item .product-type-advanced .tb-woo-price {
    margin-top: auto;
    text-align: left !important;
}

.porto-tb-item .product-type-advanced .tb-woo-price .price {
    color: #17212b !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

@media (min-width: 576px) {
    .porto-tb-item .product-type-advanced .tb-hover-content.with-link {
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
    }

    .porto-tb-item .product-type-advanced
    .tb-hover-content .cs-bottom.porto-tb-addcart {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 46px !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        color: #fff !important;
        background: #f47a20 !important;
    }
}

@media (max-width: 575px) {
    .archive-products .product-type-advanced .porto-tb-wishlist,
    .archive-products .product-type-advanced .porto-tb-quickview {
        display: none !important;
    }

    .archive-products .product-type-advanced
    .tb-hover-content a.porto-tb-addcart.d-sm-none {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        top: auto !important;
        right: 8px !important;
        bottom: 8px !important;
        left: auto !important;
        border-radius: 50% !important;
        color: #fff !important;
        background: #f47a20 !important;
    }

    .archive-products .product-type-advanced
    .tb-hover-content a.porto-tb-addcart.d-sm-none i {
        font-size: 18px !important;
    }

    .archive-products .product-type-advanced > .product-content {
        padding: 10px 9px 12px !important;
    }

    .archive-products .product-type-advanced h3.post-title {
        height: 34px;
        font-size: 12px !important;
        line-height: 17px !important;
    }

    .archive-products .product-type-advanced .tb-woo-price .price {
        font-size: 13px !important;
        line-height: 1.25 !important;
    }
}

@media (max-width: 359px) {
    .archive-products .posts-wrap.products-container.cols-2 {
        --porto-cols: 100% !important;
    }
}

/* Design 4 homepage trust strip: decorative icons, shared by EN and TR. */
body.home #bm-trust-strip .bm-trust-item {
    position: relative;
    min-height: 58px;
    padding: 5px 0 2px 74px;
}

body.home #bm-trust-strip .bm-trust-item::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    border: 1px solid #f8d6be;
    border-radius: 14px;
    background-color: #fff4eb;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 38px 38px;
    box-shadow: 0 4px 13px rgba(23, 33, 43, .06);
    content: "";
}

body.home #bm-trust-strip .vc_column_container:nth-child(1) .bm-trust-item::before {
    background-image: url("assets/icon-shipping.svg");
}

body.home #bm-trust-strip .vc_column_container:nth-child(2) .bm-trust-item::before {
    background-image: url("assets/icon-secure.svg");
}

body.home #bm-trust-strip .vc_column_container:nth-child(3) .bm-trust-item::before {
    background-image: url("assets/icon-special.svg");
}

@media (min-width: 768px) and (max-width: 991px) {
    body.home #bm-trust-strip .bm-trust-item {
        padding-left: 62px;
    }

    body.home #bm-trust-strip .bm-trust-item::before {
        width: 48px;
        height: 48px;
        background-size: 33px 33px;
    }
}
