/* KaamMittar catalog listing (category, search, special, manufacturer) */

#product-category,
#product-search,
#product-special,
#product-manufacturer {
    padding-bottom: 48px;
}

#product-category #content,
#product-search #content,
#product-special #content,
#product-manufacturer #content {
    min-height: 420px;
}

#product-category #content>h2,
#product-search #content>h2,
#product-special #content>h2,
#product-manufacturer #content>h1 {
    margin: 0 0 18px;
    color: var(--text-main);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.2px;
    line-height: 1.25;
}

#product-category #content>.row .img-thumbnail {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 6px;
    background: #fff;
}

#product-category #content>.row .col-sm-10 {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

#product-category h3 {
    margin: 8px 0 14px;
    color: var(--text-main);
    font-size: 17px;
    font-weight: 800;
}

#product-category #content>.row ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#product-category #content>.row ul li {
    margin-bottom: 9px;
}

#product-category #content>.row ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    transition: color .18s ease;
}

#product-category #content>.row ul li a::before {
    content: '\f105';
    font-family: 'FontAwesome';
    color: var(--worker-primary);
    font-size: 13px;
}

#product-category #content>.row ul li a:hover {
    color: var(--worker-primary);
}

/* Toolbar */
.km-shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin: 0 0 24px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 64, 40, .05);
}

.km-toolbar-views {
    display: flex;
    align-items: center;
    gap: 8px;
}

.km-toolbar-views .btn-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.km-toolbar-views .btn-group>.btn {
    margin: 0;
    border-radius: 10px !important;
}

#list-view,
#grid-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0 !important;
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    background: #f5fcf8;
    color: var(--worker-primary);
    box-shadow: none;
    text-shadow: none;
    transition: all .18s ease;
}

#list-view .fa,
#grid-view .fa {
    font-size: 15px;
}

#list-view:hover,
#grid-view:hover {
    background: #e6f7ee;
    border-color: #bfe3d0;
    color: var(--worker-primary);
}

#list-view.active,
#grid-view.active {
    background: var(--worker-primary);
    border-color: var(--worker-primary);
    color: #fff;
    box-shadow: 0 6px 14px var(--worker-glow);
}

#list-view.active:hover,
#grid-view.active:hover {
    color: #fff;
}

.km-compare-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid #cfe9db;
    border-radius: 10px;
    background: #eaf7f0;
    color: var(--worker-primary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: all .18s ease;
}

.km-compare-link:hover {
    background: #dcf1e5;
    color: #004e33;
    text-decoration: none;
}

.km-toolbar-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.km-shop-toolbar .km-toolbar-select {
    margin-left: auto;
}

.km-shop-toolbar .km-toolbar-select+.km-toolbar-select {
    margin-left: 0;
}

.km-toolbar-select label {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.km-toolbar-select select.form-control {
    height: 40px;
    min-width: 138px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #f9fdfb;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}

.km-toolbar-select select.form-control:focus {
    border-color: var(--worker-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 66, .1);
}

/* Product grid */
.km-shop-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
    gap: 22px;
    margin: 0;
}

.km-shop-products::before,
.km-shop-products::after {
    display: none !important;
}

.km-shop-products>.product-layout {
    display: block;
    float: none !important;
    width: auto !important;
    margin: 0;
    padding: 0 !important;
}

.km-shop-products>.product-layout.product-list {
    grid-column: 1 / -1;
}

.product-layout .product-thumb {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 64, 40, .06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-layout .product-thumb:hover {
    transform: translateY(-4px);
    border-color: #bfe3d0;
    box-shadow: 0 14px 28px rgba(0, 64, 40, .13);
}

.product-layout .product-thumb>div:last-child {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.product-layout .product-thumb .image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 208px;
    padding: 16px;
    background: #f6fbf8;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.product-layout .product-thumb .image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-layout .product-thumb .image a:hover {
    opacity: 1;
}

.product-layout .product-thumb .image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    transition: transform .4s ease;
}

.product-layout .product-thumb:hover .image img {
    transform: scale(1.05);
}

.product-layout .product-thumb .caption {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-left: 0;
    padding: 16px 18px 12px;
}

.product-layout .product-thumb h4 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.product-layout .product-thumb h4 a {
    color: inherit;
}

.product-layout .product-thumb h4 a:hover {
    color: var(--worker-primary);
}

.product-layout .product-thumb .caption>p {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.product-layout .product-thumb .caption>p.price {
    margin: auto 0 0;
    padding-top: 10px;
    color: var(--worker-primary);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.product-layout .product-thumb .price-new {
    color: var(--worker-primary);
    font-weight: 900;
}

.product-layout .product-thumb .price-old {
    margin-left: 8px;
    color: #92a59b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: line-through;
}

.product-layout .product-thumb .price-tax {
    display: block;
    margin-top: 4px;
    color: #92a59b;
    font-size: 11px;
    font-weight: 500;
}

.product-layout .product-thumb .rating {
    padding: 8px 0 0;
    line-height: 1;
}

.product-layout .product-thumb .rating .fa-stack {
    width: 1.1em;
    height: 1.1em;
    line-height: 1.1em;
}

.product-layout .product-thumb .rating .fa-star-o {
    color: #d3e3da;
    font-size: 14px;
}

.product-layout .product-thumb .rating .fa-star {
    color: #ffb400;
    font-size: 14px;
}

.product-layout .product-thumb .rating .fa-star+.fa-star-o {
    color: #f0a500;
}

.product-layout .product-thumb .button-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 14px;
    background: #f8fcf9;
    border-top: 1px solid var(--border-color);
    overflow: visible;
}

.product-layout .product-thumb .button-group button {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto !important;
    height: 42px;
    padding: 0;
    margin: 0;
    float: none !important;
    border: 1px solid #d7eadf !important;
    border-radius: 12px;
    background: #ecf8f1;
    color: var(--worker-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
    transition: all .18s ease;
}

.product-layout .product-thumb .button-group button:first-child {
    flex: 1 1 auto;
    padding: 0 14px;
    border-color: transparent !important;
    background: var(--worker-gradient);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 6px 14px rgba(0, 102, 66, .22);
}

.product-layout .product-thumb .button-group button:hover {
    background: #dcf1e5;
    border-color: #bfe3d0 !important;
    color: var(--worker-primary);
}

.product-layout .product-thumb .button-group button:first-child:hover {
    background: linear-gradient(135deg, #005638 0%, #00442a 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 102, 66, .28);
}

.product-layout .product-thumb .button-group button+button {
    width: auto;
    border-left: 1px solid #d7eadf !important;
}

/* List view */
@media (min-width: 768px) {

    .product-layout.product-list .product-thumb {
        flex-direction: row;
    }

    .product-layout.product-list .product-thumb .image {
        flex: 0 0 240px;
        width: 240px;
        height: auto;
        padding: 20px;
        border-right: 1px solid var(--border-color);
        border-bottom: 0;
    }

    .product-layout.product-list .product-thumb .image a {
        min-height: 190px;
    }

    .product-layout.product-list .product-thumb>div:last-child {
        flex: 1 1 auto;
    }

    .product-layout.product-list .product-thumb .caption {
        padding: 20px 24px 12px;
    }

    .product-layout.product-list .product-thumb .caption>p {
        max-width: 760px;
    }

    .product-layout.product-list .product-thumb .button-group {
        padding: 12px 24px;
    }
}

/* Pagination + results */
.km-shop-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 24px -15px 0;
}

.km-shop-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.km-shop-pagination .pagination>li>a,
.km-shop-pagination .pagination>li>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    background: #fff;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.km-shop-pagination .pagination>li>a:hover,
.km-shop-pagination .pagination>li>span:hover {
    border-color: #bfe3d0;
    background: #eaf7f0;
    color: var(--worker-primary);
}

.km-shop-pagination .pagination>.active>a,
.km-shop-pagination .pagination>.active>span,
.km-shop-pagination .pagination>.active>a:hover,
.km-shop-pagination .pagination>.active>span:hover {
    border-color: var(--worker-primary);
    background: var(--worker-primary);
    color: #fff;
}

.km-shop-pagination .text-right {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

/* Manufacturer index/list */
#product-manufacturer #content>p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

#product-manufacturer #content>p strong {
    color: var(--text-main);
}

#product-manufacturer h2 {
    margin: 26px 0 14px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--worker-primary);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 800;
}

.km-manufacturer-index {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 64, 40, .05);
}

.km-manufacturer-index strong {
    margin-right: 4px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
}

.km-manufacturer-index a {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #cfe9db;
    border-radius: 999px;
    background: #eaf7f0;
    color: var(--worker-primary);
    font-size: 12px;
    font-weight: 700;
    transition: all .18s ease;
}

.km-manufacturer-index a:hover {
    background: var(--worker-primary);
    border-color: var(--worker-primary);
    color: #fff;
    text-decoration: none;
}

.km-manufacturer-list .row {
    margin-bottom: 4px;
}

.km-manufacturer-list .row>div {
    margin-bottom: 10px;
}

.km-manufacturer-list .row>div>a {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    transition: all .18s ease;
}

.km-manufacturer-list .row>div>a:hover {
    border-color: #bfe3d0;
    background: #f1faf5;
    color: var(--worker-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 64, 40, .08);
}

@media (max-width: 991px) {
    .km-shop-toolbar .km-toolbar-select {
        flex: 1 1 200px;
        margin-left: 0;
    }

    .km-toolbar-select select.form-control {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .km-shop-toolbar {
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
    }

    .km-compare-link {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
    }

    .km-toolbar-select {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .km-toolbar-select label {
        flex: 0 0 auto;
    }

    .km-toolbar-select select.form-control {
        flex: 1 1 auto;
    }

    .km-shop-products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .product-layout .product-thumb {
        border-radius: 14px;
    }

    .product-layout .product-thumb .image {
        height: 160px;
        padding: 10px;
    }

    .product-layout .product-thumb .caption {
        padding: 12px 12px 10px;
    }

    .product-layout .product-thumb h4 {
        font-size: 14px;
    }

    .product-layout .product-thumb .caption>p {
        font-size: 12px;
    }

    .product-layout .product-thumb .caption>p.price {
        font-size: 17px;
    }

    .product-layout .product-thumb .button-group {
        padding: 10px;
        gap: 6px;
    }

    .product-layout .product-thumb .button-group button {
        flex: 0 0 38px;
        height: 38px;
        border-radius: 10px;
    }

    .product-layout .product-thumb .button-group button:first-child {
        flex: 1 1 auto;
    }

    .km-shop-pagination {
        margin-top: 18px;
    }
}

@media (max-width: 420px) {
    .km-shop-products {
        grid-template-columns: 1fr;
    }

    .product-layout .product-thumb .image {
        height: 200px;
    }

    .km-toolbar-views .btn-group {
        width: 100%;
    }

    #list-view,
    #grid-view {
        flex: 1 1 0;
        width: auto;
    }
} 
