/**
* Theme Name: Medibazar Child
* Description: This is a child theme of Medibazar, generated by Merlin WP.
* Author: <a href="http://themeforest.net/user/KlbTheme">KlbTheme (Sinan ISIK)</a>
* Template: medibazar
* Version: 1.9.4
*/

.custom-subcategories {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.custom-subcategories li {
    margin-bottom: 6px;
}

.custom-subcategories li a {
    font-size: 14px; /* smaller text */
    color: #333;
    text-decoration: none;
}

.custom-subcategories li a:hover {
    color: #0073aa;
}



/* ===== CATEGORY GRID FIX ===== */

/* Force 4 columns */
.woocommerce-page ul.products li.product-category {
    width: 25% !important;
    max-width: 25% !important;
    float: left;
    padding: 10px;
}

/* Fix spacing after removing image */
.woocommerce ul.products li.product-category a {
    padding-top: 0 !important;
}

/* Reduce category title size */
.woocommerce-loop-category__title {
    font-size: 15px !important;
    text-align: center;
    line-height: 1.3;
}

/* Reduce count size */
.woocommerce-loop-category__title .count {
    font-size: 12px !important;
}

.woocommerce ul.products li.product-category img {
    display: none !important;
}

/* Remove space reserved for image */
.woocommerce ul.products li.product-category .woocommerce-loop-category__link {
    padding-top: 0 !important;
}

.woocommerce-loop-category__title {
    font-size: 15px !important;
    text-align: center;
}

/* Add space AFTER last category */
.woocommerce ul.products li.product-category:nth-last-of-type(1) {
    margin-bottom: 60px !important;
}

/* Force products to start on new row */
.woocommerce ul.products .klb-product {
    clear: both !important;
    margin-top: 40px !important;
}

/* ===== My Breadcrumb Changes Start ===== */
.klb-shop-breadcrumb.breadcrumb-area.pt-125.pb-125 {
    padding-top: 10px;
    padding-bottom: 20px;
}
 
.klb-breadcrumb-wrapper ul.breadcrumb-menu{
     padding: 10px 40px;
}
 
.breadcrumb-menu li a {
   font-size: 14px;
}
 
.breadcrumb-menu li span {
    font-size: 14px;
}
 
 
.breadcrumb-text h2 {
    font-size: 35px;
}
 
.breadcrumb-menu li::before {
    top: 0px;
}
 
 
@media (max-width: 767px) {
    .breadcrumb-text h2 {
        font-size: 35px !important;
    }
}
 
/* ===== My Breadcrumb Changes End ===== */


/* #######===== ACTIVE CATEGORY ===== */

/* Current category */
.product-categories li.current-cat > a {
    color: #0073aa !important;
    font-weight: 600;
    font-size: 16px;
}

/* Parent category */
.product-categories li.current-cat-parent > a {
    color: #000;
    font-weight: 600;
}


/* ===== CATEGORY GRID (3 PER ROW) ===== */
.woocommerce ul.products li.product-category {
    width: 33.33%;
    float: left;
    padding: 10px;
    box-sizing: border-box;
}

/* Clear row after every 3 items */
.woocommerce ul.products li.product-category:nth-child(3n+1) {
    clear: both;
}


/* Remove left space for first item */
.woocommerce ul.products li.product-category.first {
    padding-left: 0 !important;
}

/* Remove right space for last item */
.woocommerce ul.products li.product-category.last {
    padding-right: 0  !important;
}

/* ===== SPACE BETWEEN CATEGORY & PRODUCTS ===== */
.woocommerce ul.products .klb-product:first-of-type {
    clear: both;
    margin-top: 50px;
}

/* Tablet → 2 per row */
@media (max-width: 991px) {
    .woocommerce ul.products li.product-category {
        width: 50%;
    }
}

/* Mobile → 1 per row */
@media (max-width: 575px) {
    .woocommerce ul.products li.product-category {
        width: 100%;
    }
}

/* ===== CUSTOM CATEGORY GRID ===== */

.custom-cat-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 40px;
}

.custom-cat-grid .cat-item {
    width: 33.33%;
    padding: 10px;
    box-sizing: border-box;
}

.custom-cat-grid .cat-item h3 {
    font-size: 16px;
    text-align: center;
    background: #f5f5f5;
    padding: 15px;
    margin: 0;
}

/* Tablet */
@media (max-width: 991px) {
    .custom-cat-grid .cat-item {
        width: 50%;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .custom-cat-grid .cat-item {
        width: 100%;
    }
}

.breadcrumb-area:before {
    background: rgb(0 53 126) !important;
    }


    .klb-product {
        display: flex;
    }
    
    .product-03-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
    }