/**
 * @package so Categories for HikaShop
 * @version 1.0.0
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @copyright (c) 2014 YouTech Company. All Rights Reserved.
 * @author YouTech Company http://www.smartaddons.com
 *
 */

.clear {
    clear: both;
}

.child-cat {
    overflow: hidden;
    padding-left: 5px;
}

div.dev-categories .cat-wrap .content-box .child-cat .child-cat-title:hover {
    padding-left: 15px;
}

div.dev-categories .cat-wrap .content-box .child-cat .child-cat-title a:hover {
    color: #ec554c !important;
}

.so-categories {
    margin: 20px 0;
    overflow: hidden;
}

.so-categories .intro_text,
.so-categories .footer_text {
    margin: 10px 0px;
}

.so-categories .cat-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.so-categories .cat-wrap.theme2 .content-box .child-cat {
    padding-top: 20px;
}

/*############################################## Css Device ##################################*/

/* Для больших экранов (от 1200px) - можно добавить 5 элементов */
@media (min-width: 1200px) {
    .so-categories .cat-wrap {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Для ноутбуков и планшетов в ландшафте (1024px - 1199px) */
@media (max-width: 1199px) {
    .so-categories .cat-wrap {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

/* Для планшетов в портрете (768px - 1023px) - 3 элемента в ряду */
@media (max-width: 1023px) {
    .so-categories .cat-wrap {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Для мобильных в ландшафте (576px - 767px) - 2 элемента */
@media (max-width: 767px) {
    .so-categories .cat-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Для мобильных в портрете (до 575px) - 1 элемент */
@media (max-width: 575px) {
    .so-categories .cat-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 400px;
        margin: 0 auto; /* центрирование */
    }
}

/* Очень маленькие экраны */
@media (max-width: 375px) {
    .so-categories .cat-wrap {
        gap: 10px;
    }
}

/*################################# End css Device #############################################*/

.so-categories .cat-wrap .content-box {
    overflow: hidden;
    line-height: 20px;
    padding-bottom: 15px;
}

.so-categories .cat-wrap .content-box .cat-title a {
    font-weight: bold;
    font-size:16px;
}

.so-categories .cat-wrap.theme1 .content-box .child-cat .child-cat-title {
    float: none;
    padding: 0;
}

.so-categories .cat-wrap .content-box .child-cat .child-cat-title {
    float: left;
    padding-right: 5px;
}

.so-categories .cat-wrap.theme3 .content-box .child-cat .child-cat-title {
    display: block;
    float: none;
    padding-left: 10px;
    line-height: 22px;
    position: relative;
    width: 100%;
    color: #000000;
    font-size: 13px;
    transition: .4s;
}

div.dev-categories .cat-wrap .content-box .child-cat .child-cat-title:before {
    content: "";
    background: #666;
    content: "";
    width: 4px;
    height: 4px;
    position: absolute;
    left: 0;
    top: 9px;
    border-radius: 50%;
    transition: .4s;
}

.so-categories .cat-wrap.theme2 .content-box img,
.so-categories .cat-wrap.theme3 .content-box img {
    width: 100%;
    display: block;
    max-width: 100%;
    box-shadow: #000 0em 0em 0em;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    transition: all 0.2s linear;
    border:#f5f5f5 1px solid;
}

.so-categories .cat-wrap .image-cat {
    overflow: hidden;
}

.so-categories .cat-wrap.theme4 .so-categories-content .child-cat .child-cat-info .image-cat {
    float: left;
    width: 30%;
    margin: 0;
    margin: 0 13px 0 0;
    overflow: hidden;
}

.so-categories .cat-wrap.theme4 .so-categories-content .child-cat .child-cat-info .image-cat a {
    display: block;
    border: 0;
    width: 100%;
    float: left;
    overflow: hidden;
    font-size:13px;
}

.so-categories .cat-wrap.theme4 .so-categories-content .child-cat .child-cat-info .image-cat img {
    width: 100%;
    display: block;
    max-width: 100%;
    box-shadow: #000 0em 0em 0em;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    transition: all 0.2s linear;
    border:#f5f5f5 1px solid;
}

.so-categories .cat-wrap img:hover {
    opacity: 0.8;
    filter: alpha(opacity=80);
    box-shadow: #000 0em 0em 0em;
    -webkit-transform: scale(1.1, 1.1);
    -moz-transform: scale(1.1, 1.1);
    -o-transform: scale(1.1, 1.1);
    -ms-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
}

/*#################### css for theme 2 ######################*/
.so-categories .cat-wrap.theme2 .arrow {
    background: url(../images/arrow.png) no-repeat;
    margin-top: 6px;
    width: 6px;
    height: 7px;
    float: left;
    padding-right: 10px;
}

.so-categories .cat-wrap.theme2 .content-box .parent-cat {
    float: left;
    margin: 0 10px 10px 0;
    max-width: 50%;
}

.so-categories .cat-wrap.theme2 .content-box .parent-cat .cat-title {
    padding-bottom: 5px;
}

.so-categories .cat-wrap.theme2 .content-box .child-cat .child-cat-title {
    float: none;
    overflow: hidden;
}

/*#################### css for theme 3 ######################*/
.so-categories .cat-wrap.theme3 .content-box .cat-title {
    padding-top: 15px;
    margin-bottom: 5px;
}

/*#################### css for theme 4 ######################*/
.so-categories.theme4 {
    padding: 1px;
}

.so-categories .cat-wrap.theme4 {
    border: 1px solid #CCCCCC;
    width: 100%;
    margin: 0 -1px;
    height: auto;
}

.so-categories .cat-wrap.theme4 .so-categories-inner {
    width: 100%;
    float: left;
    padding: 0px;
    margin: 0px;
}

.so-categories .cat-wrap.theme4 .so-categories-heading {
    background: url(../images/bk.gif) repeat-x;
    height: 24px;
    cursor: pointer;
}

.so-categories .cat-wrap.theme4 .so-categories-heading .icon_left {
    background: url(../images/icon.png) no-repeat;
    margin-top: 8px;
    width: 7px;
    height: 7px;
    margin-left: 5px;
    float: left
}

.so-categories .cat-wrap.theme4 .so-categories-heading .icon_right {
    background: url(../images/plus.gif) no-repeat;
    margin-top: 5px;
    margin-right: 5px;
    width: 13px;
    height: 13px;
    float: right
}

.so-categories .cat-wrap.theme4 .so-categories-inner.selected .icon_right {
    background: url(../images/minus.gif) no-repeat;
}

.so-categories .cat-wrap.theme4 .so-categories-heading .cat-title {
    padding-left: 5px;
    line-height: 24px;
    float: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.so-categories .cat-wrap.theme4 .so-categories-content {

    height: 0;
    overflow: hidden;
    width: 100%;
}

/* .so-categories .cat-wrap.theme4 .so-categories-inner.selected .so-categories-content{
	margin:10px;
    margin-bottom:10px;
} */

.so-categories .cat-wrap.theme4 .so-categories-content .child-cat {
    padding: 15px;
    padding-bottom: 0px;
    overflow: hidden;

}

.so-categories .cat-wrap.theme4 .so-categories-content .child-cat.cat-lastitem {
    padding-bottom: 15px;
}

.so-categories .cat-wrap.theme4 .so-categories-content .child-cat.subcat-empty {
    padding: 10px;
}

.so-categories .cat-wrap.theme4 .so-categories-content .child-cat .child-cat-info {
    display: block;
}

.so-categories .cat-wrap.theme4 .so-categories-content .child-cat .image-cat {
    float: left;
    margin-right: 10px;
    overflow: hidden;
}

/* .so-categories .cat-wrap.theme4 .so-categories-content .child-cat .child-cat-desc{
	float:left;
} */
.so-categories .cat-wrap.theme4 .so-categories-content .child-cat .child-cat-desc .child-cat-title,
.so-categories .cat-wrap.theme4 .so-categories-content .child-cat .child-cat-desc .child-cat-title a {
    float: left;
    font-weight: bold;
    padding-right: 3px;
    font-size:13px;
}

@media all and (max-width: 480px) {
    .so-categories .cat-wrap.theme2 .content-box .parent-cat {
        margin: 0 0 10px 0;
        width: 100%;
        float: none;
        max-width: 100%;
    }

    .so-categories .cat-wrap.theme2 .content-box img {
        width: 100%;
        display: block;
        max-width: 100%;
    }

}

.cf:before,
.cf:after {
    content: " ";
    display: table;
}

.cf:after {
    clear: both;
}

.so-categories .thumbnail {
    margin-bottom: 0 !important;
}

.so-categories .link-color {
    font-size: 13px;
    color: #ec554c;
}
