/* ---------------------- */
/* КАРТОЧКА В ВИДЕ ТОВАРА */
/* ---------------------- */

/* Добавить в начало ярлыка:

product-card-

*/

/* ----------------- */
/* БЫСТРЫЕ НАСТРОЙКИ */
/* ----------------- */

/* Анимация карточки при наведении - ТЕНЬ */

.folders-row .col-lg-3 > a[href*="wpm-category/product-card-"][class*="folder-wrap"]:hover {
	filter: drop-shadow(6px 12px 8px var(--shadow-color-product-card));
	-webkit-filter: drop-shadow(6px 12px 8px var(--shadow-color-product-card));
}

/* 1. Раскомментировать, чтобы скрыть СТИКЕР при наведении на карточку */

/* .folders-row a[href*="wpm-category/product-card-"]:hover .label {
	display: none;
} */

/* 2. Раскомментировать, чтобы сделать текст СТИКЕРА жирным */

/* .folders-row a[href*="wpm-category/product-card-"] .label {
    font-weight: bold;
} */

/* ------------------------- */
/* 1. БЛОК - ССЫЛКА КАРТОЧКИ */

/* Убираем рамку - ТЕНЬ вокруг карточки */

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] {
	border: none;
	box-shadow: none;
}

/* Общие настройки блока карточки */

.folders-row .col-lg-3:has(a[href*="wpm-category/product-card-"][class*="folder-wrap"]) {
	display: block!important;
	z-index: 501!important;
	/* 3 карточки в ряду на больших экранах */
    width: calc(100%/3)!important;
}

/* 2 карточки в ряду на средних экранах */

@media (min-width: 768px) and (max-width: 991px) {

.folders-row .col-lg-3:has(a[href*="wpm-category/product-card-"][class*="folder-wrap"]) {
	width: calc(100%/2)!important;
}
}

/* 1 карточка в ряду на мобильных */

@media (min-width: 320px) and (max-width: 767px) {

.folders-row .col-lg-3:has(a[href*="wpm-category/product-card-"][class*="folder-wrap"]) {
	width: 100%!important;
	/* Корректировка ширины карточки на узких экранах */
	padding-right: 0px;
    padding-left: 0px;
}
}

/* Высота карточки на разных экранах */

@media (min-width: 1400px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] {
	height: 349px;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] {
	height: 312px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] {
	height: 274px;
}
}

@media (min-width: 768px) and (max-width: 991px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] {
    height: 303px;
}
}

@media (min-width: 460px) and (max-width: 767px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] {
    height: 299px;
}
}

@media (min-width: 320px) and (max-width: 459px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] {
	height: 312px;
}
}

/* --------------------- */
/* 2. СТИКЕР НА КАРТОЧКЕ */

.folders-row a[href*="wpm-category/product-card-"] .label {
    font-size: 17px;
    line-height: normal;
	top: calc(13px + var(--radius-top-product-card)/6);
    right: calc(13px + var(--radius-top-product-card)/4);
}

/* -------------------- */
/* 3. ОПИСАНИЕ КАРТОЧКИ */

/* Иконка в ЗАКРЫТОМ товаре */

.folders-row .col-xs-12 > a[href*="wpm-category/product-card-"][class*="folder-lock"] > .folder-content .title:before,
.row-key-categories .col-xs-12 > a[href*="wpm-category/product-card-"][class*="folder-lock"] > .folder-content .title:before {
	content: var(--icon-product-card);
	color: var(--color-icon-product-card);
}

/* Скрываем иконку в ОТКРЫТОМ блоке ТОВАР */

.folders-row .col-xs-12 > a[href*="wpm-category/product-card-"][class*="folder-unlock"] > .folder-content .title:before,
.row-key-categories .col-xs-12 > a[href*="wpm-category/product-card-"][class*="folder-unlock"] > .folder-content .title:before {
	display: none;
}

/* ---------- */
/* 4. ОБЛОЖКА */
/* ---------- */

/* Закругление обложки */

.folders-row a[href*="wpm-category/product-card-"] .folder-front, 
.folders-row a[href*="wpm-category/product-card-"] .folder-sub-front {
	border-radius: var(--radius-top-product-card) var(--radius-top-product-card) var(--radius-bottom-product-card) var(--radius-bottom-product-card);
	/* Убираем обрезку обложки */
	clip-path: none;
	-webkit-clip-path: none;
	/* исправляем глюк с закруглением (для clip-path) для Сафари */
	transform: translateZ(0);
    will-change: transform;
}

/* ------------------- */
/* ИЗОБРАЖЕНИЕ ОБЛОЖКИ */
/* ------------------- */

/* Тонировка обложки */
/* Убираем эффект от классической карточки */

.folders-row a[href*="wpm-category/product-card-"] .folder-sub-front pattern image,
.folders-row a[href*="wpm-category/product-card-"] .folder-front pattern image {
	/* эффекты */
	filter: none;
	-webkit-filter: none;
}

/* Осветление и Яркость - при наведении */
/* Берутся от классической карточки */

.folders-row a[href*="wpm-category/product-card-"]:hover .folder-sub-front pattern image,
.folders-row a[href*="wpm-category/product-card-"]:hover .folder-front pattern image {
    /* эффекты */
	filter: opacity(var(--opacity-cover-effect-hover-classic-card)) drop-shadow(0 0 0 #DFECE0) brightness(var(--brightness-cover-effect-hover-classic-card));
	-webkit-filter: opacity(var(--opacity-cover-effect-hover-classic-card)) drop-shadow(0 0 0 #DFECE0) brightness(var(--brightness-cover-effect-hover-classic-card));
}

/* ---------------------------------------------------------- */
/* РАЗМЕР ОБЛОЖКИ на карточке с МАТЕРИАЛАМИ на разных экранах */
/* ---------------------------------------------------------- */

@media (min-width: 1400px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-front pattern image {
    width: 262px;
    transform: translate(4px, 16px);
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-front pattern image {
    width: 248px;
    transform: translate(11px, 16px);
}
}

@media (min-width: 992px) and (max-width: 1199px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-front pattern image {
    width: 230px;
    transform: translate(20px, 16px);
}
}

@media (min-width: 768px) and (max-width: 991px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-front pattern image {
    width: 244px;
    transform: translate(13px, 16px);
}
}

@media (min-width: 460px) and (max-width: 767px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-front pattern image {
    width: 244px;
    transform: translate(13px, 16px);
}
}	

@media (min-width: 320px) and (max-width: 459px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-front pattern image {
	width: 248px;
    transform: translate(11px, 16px);
}
}

/* --------------------------------------------------------- */
/* РАЗМЕР ОБЛОЖКИ на карточке с КАРТОЧКАМИ на разных экранах */
/* --------------------------------------------------------- */

@media (min-width: 1400px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-sub-front  pattern image {
	width: 283px;
    transform: translate(21px, 51px);
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-sub-front  pattern image {
	width: 279px;
    transform: translate(23px, 47px);
}
}

@media (min-width: 992px) and (max-width: 1199px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-sub-front  pattern image {
	width: 262px;
    transform: translate(31px, 46px);
}
}

@media (min-width: 768px) and (max-width: 991px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-sub-front  pattern image {
	width: 276px;
    transform: translate(24px, 46px);
}
}

@media (min-width: 460px) and (max-width: 767px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-sub-front  pattern image {
    width: 274px;
    transform: translate(25px, 47px);
}
}	

@media (min-width: 320px) and (max-width: 459px) {

.folders-row a[href*="wpm-category/product-card-"][class*="folder-wrap"] .folder-sub-front  pattern image {
	width: 279px;
    transform: translate(23px, 47px);
}
}

/* ------------- */
/* 5. ИНДИКАТОРЫ */
/* ------------- */

/* Закругление нижней части карточки */

.folders-row .col-xs-12 a[href*="wpm-category/product-card-"] .folder-content .bottom-icons {
	border-radius: 0 0 var(--radius-bottom-product-card) var(--radius-bottom-product-card);
	padding-left: 10px!important;
    padding-right: 10px!important;
	display: block!important;
    height: auto;
}

/* Убираем Прогресс, Комментарии, Просмотры и Замок */

.folders-row a[href*="wpm-category/product-card-"] > .folder-content > .bottom-icons .course-progress-wrap,
.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .comments,
.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .views,
.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .status span
{
	display: none;
}

/* Правка иконки статуса, чтобы всё было ОК */

.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .status {
    padding-top: 0;
}

/* ------------------------------------- */
/* Создаём КНОПКУ возле СТАТУСА карточки */

/* Общие настройки для кнопки */

.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .status {
	margin-right: 5px!important;
}

.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .status::before {
    text-transform: uppercase;
    padding: 10px 15px;	
    text-align: center;
    font-size: 17px;
    font-family: "PT Sans", sans-serif;
	border-radius: 10px;
    line-height: normal;
	display: block;
	position: relative;
    bottom: 11px;
	/* плавная анимация */
	-webkit-transition: all var(--speed-all-effects-product-card) ease-out;
    -moz-transition: all var(--speed-all-effects-product-card) ease-out;
    -o-transition: all var(--speed-all-effects-product-card) ease-out;
    transition: all var(--speed-all-effects-product-card) ease-out;
}

/* Создаём КНОПКУ для ОТКРЫТОГО доступа */

.folders-row a[href*="wpm-category/product-card-"][class*="folder-unlock"] .folder-content .bottom-icons .status::before {
	background: var(--color-bg-button-open-product-card);
	color: var(--color-bg-button-open-text-product-card);
	content: var(--text-open-product-card);
}

/* Фон КНОПКИ для ОТКРЫТОГО доступа при наведении */

.folders-row a[href*="wpm-category/product-card-"][class*="folder-unlock"] .folder-content .bottom-icons .status:hover::before {
    background: var(--color-bg-button-open-hover-product-card);
	color: var(--color-bg-button-open-text-hover-product-card);
}

/* Создаём КНОПКУ для ЗАКРЫТОГО доступа */

.folders-row a[href*="wpm-category/product-card-"][class*="folder-lock"] .folder-content .bottom-icons .status::before

 {
	background: var(--color-bg-button-close-product-card);
	color: var(--color-bg-button-close-text-product-card);
	content: var(--text-close-product-card);
}

/* Фон КНОПКИ для ЗАКРЫТОГО доступа при наведении */

.folders-row a[href*="wpm-category/product-card-"][class*="folder-lock"] .folder-content .bottom-icons .status:hover::before {
    background: var(--color-bg-button-close-hover-product-card);
	color: var(--color-bg-button-close-text-hover-product-card);
}

/* Ширина КНОПКИ на разных экранах */

@media (min-width: 1400px) {

.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .status::before
	{
	width: 398px;
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .status::before
	{
	width: 329px;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {

.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .status::before
	{
	width: 261px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {

.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .status::before
	{
	width: 314px;
	}
}

@media (min-width: 460px) and (max-width: 767px) {

.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .status::before
	{
	width: 309px;
	}
}

@media (min-width: 320px) and (max-width: 459px) {

.folders-row a[href*="wpm-category/product-card-"] .folder-content .bottom-icons .status::before
	{
	width: 328px;
	}
}

/* ----------- */
/* 6. АНИМАЦИИ */
/* ----------- */

/* Скрываем лишний текст в названии карточки */

.folders-row a[href*="wpm-category/product-card-"] > .folder-content .title {
    text-wrap: nowrap;
    text-overflow: ellipsis;
	/* для FireFox */
	white-space: -moz-pre-space;
}

/* Показываем название карточки полностью при наведении */

.folders-row a[href*="wpm-category/product-card-"] > .folder-content .title:hover {
    text-wrap: inherit;
	/* для FireFox */
	white-space: normal;
}