/* ------------------------------------------------------------- */
/* КАРТОЧКА - КАТЕГОРИЯ С ИКОНКОЙ, ЗАГОЛОВКОМ, ОПИСАНИЕМ И ФОНОМ */
/* ------------------------------------------------------------- */

/* Добавить в начало ярлыка:

cat-icon-title-text-card-

*/

/* ----------------- */
/* БЫСТРЫЕ НАСТРОЙКИ */
/* ----------------- */

:root {
	
	/* 1. Закругление карточки */
	--radius-cat-icon-title-text-card: 25px;

	/* 2. Основной фон карточки */
	--color-bg-cat-icon-title-text-card: #FFEA94;
	
	/* 3. Цвет заголовка */
	--color-title-cat-icon-title-text-card: #e80557;
	
	/* 4. Цвет описания */
	--color-main-text-cat-icon-title-text-card: #000;

}

/* 1. Раскомментировать, чтобы отключить ТЕНЬ при наведении на карточку */

.folders-row .col-lg-3 > a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"]:hover {
	filter: none;
}

/* Убираем рамку - ТЕНЬ вокруг карточки */

.folders-row a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"] {
	border: none;
	box-shadow: none;
	border-radius: 0;
	background: var(--color-bg-cat-icon-title-text-card);
	border-radius: var(--radius-cat-icon-title-text-card);
	/* временный фон карточки */
    /* background: aqua;  */
}

/* Убираем все индикаторы */

a[href*="wpm-category/cat-icon-title-text-card-"] .folder-content .bottom-icons {
	display: none!important;
}

/* Переносим карточку КАТЕГОРИЯ на новую строку */

.col-lg-3:has(a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"]) {
	display: block!important;
	width: 100%!important;
	z-index: 498!important;
}

/* ---------------- */
/* Отступы карточки */

@media (min-width: 1400px) {

.col-lg-3:has(a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"]) {
    /* margin-bottom: -3px; */
    /* margin-top: 94px; */
    margin-bottom: 18px;
    margin-top: 69px;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.col-lg-3:has(a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"]) {
    margin-bottom: 114px;
    margin-top: -25px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

.col-lg-3:has(a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"]) {
	margin-bottom: 87px;
    margin-top: 3px;
}
}

@media (min-width: 768px) and (max-width: 991px) {

.col-lg-3:has(a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"]) {
    margin-bottom: 117px;
    margin-top: -28px;
}
}

@media (min-width: 460px) and (max-width: 767px) {

.col-lg-3:has(a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"]) {
    margin-bottom: 113px;
    margin-top: -23px;
}
}

@media (min-width: 320px) and (max-width: 459px) {

.col-lg-3:has(a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"]) {
    margin-bottom: 107px;
    margin-top: -46px;
}
}

/* ВЫСОТА карточки на разных экранах */

@media (min-width: 1400px) {

a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"] {
    height: 265px!important;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"] {
	height: 265px!important;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"] {
	height: 263px!important;
}
}

@media (min-width: 768px) and (max-width: 991px) {

a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"] {
	height: 250px!important;
}
}

@media (min-width: 460px) and (max-width: 767px) {

a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"] {
	height: 180px!important;
}
}

@media (min-width: 320px) and (max-width: 459px) {

a[href*="wpm-category/cat-icon-title-text-card-"][class*="folder-wrap"] {
	height: 180px!important;
}
}

/* ------- */
/* ОБЛОЖКА */

/* Убираем обрезку обложки */

a[href*="wpm-category/cat-icon-title-text-card-"] .folder-front,
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-sub-front {
	z-index: 10;
	width: 100%!important;
	border-radius: 0!important;
	clip-path: none!important;
	top: 0;
	background: none;
}

/* Убираем коррекцию обложки */
	
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-front path[id*="shape-front"],
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-sub-front path[id*="shape-front"] {
	transform: none;
}

/* Убираем коррекцию стилей от Mozilla Firefox */

a[href*="wpm-category/cat-icon-title-text-card-"] .folder-front use[fill^="url"],
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-sub-front use[fill^="url"] {
	transform: none;
}

/* Фоновая картинка ИКОНКА на разных экранах */

@media (min-width: 1400px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .folder-front pattern image,
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-sub-front  pattern image

{
    transform: translate(124px, 81px);
    width: 22px;
    height: 22px;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .folder-front pattern image,
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-sub-front  pattern image

{
	transform: translate(122px, 78px);
    width: 25px;
    height: 25px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .folder-front pattern image,
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-sub-front  pattern image

{
	transform: translate(122px, 72.5px);
    width: 25px;
    height: 25px;
}
}

@media (min-width: 768px) and (max-width: 991px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .folder-front pattern image,
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-sub-front  pattern image

{
	transform: translate(122px, 67px);
    width: 26px;
    height: 26px;
}
}

@media (min-width: 460px) and (max-width: 767px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .folder-front pattern image,
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-sub-front  pattern image

{
	transform: translate(115px, 54px);
    width: 41px;
    height: 41px;
}
}

@media (min-width: 320px) and (max-width: 459px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .folder-front pattern image,
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-sub-front  pattern image

{
	transform: translate(115px, 57px);
    width: 41px;
    height: 41px;
}
}

/* ----------------------------- */
/* Превращаем СТИКЕР в ЗАГОЛОВОК */

/* Общие настройки */

a[href*="wpm-category/cat-icon-title-text-card-"] .label {
	background: none!important;
	color: var(--color-title-cat-icon-title-text-card)!important;
	border-radius: 0;
	font-weight: bold;
	font-size: 40px;
	width: 100%!important;
	max-width: none;
	left: 0px;
    text-align: center;
    right: 0;
    margin: 0 auto;
	text-transform: none;
	padding: 6px 20px 15px 20px;
	line-height: 1.9rem;
	/* overflow: visible; */
}

/* Размер заголовка на мобильных */

@media (min-width: 460px) and (max-width: 767px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .label {   
	font-size: 25px;
	line-height: .9;
    overflow: hidden;
    text-overflow: ellipsis;
}
}

@media (min-width: 320px) and (max-width: 459px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .label {   
	font-size: 25px;
	line-height: .9;
    overflow: hidden;
    text-overflow: ellipsis;
}
}

/* ПОЛОЖЕНИЕ ЗАГОЛОВКА на разных экранах на Страницах и в Активации */

@media (min-width: 1400px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .label {
	top: 150px;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .label {
	top: 150px;

}
}

@media (min-width: 992px) and (max-width: 1199px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .label {
	top: 131px;
}
}

@media (min-width: 768px) and (max-width: 991px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .label {
    top: 116px;
}
}

@media (min-width: 460px) and (max-width: 767px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .label {
	top: 90px;
}
}

@media (min-width: 320px) and (max-width: 459px) {

a[href*="wpm-category/cat-icon-title-text-card-"] .label {
    top: 92px;
}
}

/* ------------------- */
/* СОДЕРЖАНИЕ КАРТОЧКИ */

/* Общие настройки блока содержания */

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content {
	width: 100%!important;
	border-radius: 0px 0px 35px 35px;
	background: none;
}

/* --------------------------- */
/* БЛОК СОДЕРЖАНИЯ КАРТОЧКИ */

@media (min-width: 1400px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content {
	bottom: 12px;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content {
    bottom: 16px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content {
	bottom: 12px;
}
}

@media (min-width: 768px) and (max-width: 991px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content {
	bottom: 12px;
}
}

@media (min-width: 460px) and (max-width: 767px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content {
	bottom: 21px;
}
}

@media (min-width: 320px) and (max-width: 459px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content {
	bottom: 21px;
}
}

/* Высота и закругление блока с описанием карточки */

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content .title {
	background: none!important;
	color: var(--color-main-text-cat-icon-title-text-card)!important;
    text-align: center;
	margin: 0;
	border: none;
	font-size: 20px;
	line-height: 1.1;
	max-height: none;
    text-wrap: wrap;
	white-space: pre-wrap;
	width: 100%;
	/* text-overflow: ellipsis; */
	/* overflow: visible; */
}

/* Запрещаем скрывать текст */

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content .title .js-shave {
	display: inline!important;
    position: relative;
	top: 0px;
	color: var(--color-main-text-cat-icon-title-text-card)!important;
}

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content .title .js-shave-char {
	display: none;
}

/* Описание карточки на разных экранах на Страницах и в Активации */

@media (min-width: 1400px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content .title {
	height: 64px;
    padding: 10px 178px 0px 178px !important;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content .title {
	height: 60px;
    padding: 10px 90px 0px 90px !important;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content .title {
	height: 80px;
    padding: 10px 60px 0px 60px !important;
}
}

@media (min-width: 768px) and (max-width: 991px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content .title{
	height: 85px;
    padding: 10px 30px 0px 30px !important;
}
}

/* Описание на мобильных */

@media (min-width: 320px) and (max-width: 767px) {
	
a[href*="wpm-category/cat-icon-title-text-card-"] .folder-content .title {
	font-size: 17px;
    padding: 6px 15px!important;
	text-wrap: nowrap;
    overflow: hidden;
}
}

/* Убираем раскрытие всего описания при наведении на мобильных */

@media (min-width: 320px) and (max-width: 767px) {
	
a[href*="wpm-category/cat-icon-title-text-card-"]:hover .folder-content .title {
    text-wrap: nowrap;
	white-space: nowrap;
}
}

@media (min-width: 460px) and (max-width: 767px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content .title {
	/* height: 80px; */
}
}

@media (min-width: 320px) and (max-width: 459px) {

a[href*="wpm-category/cat-icon-title-text-card-"] > .folder-content .title {
	/* height: 80px; */
}
}

/* ИКОНКА возле описания */

.folders-row .col-xs-12 > a[href*="wpm-category/cat-icon-title-text-card-"] .folder-content .title:before {
	display: none;
}

/* -------- */
/* АНИМАЦИИ */

/* Убираем увеличение и цветокоррекцию */

a[href*="wpm-category/cat-icon-title-text-card-"]:hover .folder-sub-front pattern image,
a[href*="wpm-category/cat-icon-title-text-card-"]:hover .folder-front pattern image

 {
	filter: none;
}