/* <------- PRODUCT -------> */
.product {
	width: 100%;
}
.product:hover .product__thumbnail > img {
	transform: scale(102%);
}
.product__link {
	flex-direction: column;
}
.product__card {
	position: relative;
}
.product__favorites {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	border-radius: 50%;
}
.product__thumbnail {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 10px;
}
.product__thumbnail > img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: inherit;
	object-fit: cover;
	object-position: center;
	transition: transform 250ms ease-out;
}
.product__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	position: absolute;
	top: 0;
	left: 0;
	right: 50px;
	padding: 20px;
}
.product__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 4px;
}
.product__badge.badge-new,
.product__badge.badge-hit,
.product__badge.badge-recommended {
	color: #ffffff;
}
.product__badge.badge-new {
	background-color: #32cb41;
}
.product__badge.badge-hit {
	background-color: #ff7455;
}
.product__badge.badge-recommended {
	background-color: #a56ffd;
}
.product__badge.badge-sale {
	background-color: #ffeca8;
}
.product__badge.badge-timer {
	gap: 5px;
	background-color: #ffe5e3;
}
.product__badge.badge-timer > i {
	font-size: 16px;
	color: #ff4f64;
}
.product__details {
	padding-top: 20px;
}
.product__price {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 15px;
	line-height: 1;
}
.product__price-current {
	font-size: 17px;
	font-weight: 500;
}
.product__price-sale {
	font-size: 14px;
	font-weight: 500;
	text-decoration: line-through;
	color: #929292;
}
.product__price-off {
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	background-color: #ff4f64;
	color: #fff;
}
.product__name {
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 10px;
}
.product__stats {
	display: flex;
	align-items: center;
	gap: 15px;
}
.product__rating,
.product__comments,
.product__stock {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}
.product__rating > i,
.product__comments > i,
.product__stock > i {
	font-size: 15px;
}
.product__rating > i {
	color: #f9ce3a;
}
.product__comments > i {
	color: #c8c8c8;
}
.product__stock {
	font-weight: 500;
}
.product__stock.in-stock {
	color: #32cb41;
}
.product__stock.out-of-stock {
	color: #ff4f64;
}
.product__cart,
.product__cart-loader {
	min-width: 135px;
	width: fit-content;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
	font-size: 15px;
	font-weight: 500;
	height: 45px;
	padding: 0 25px;
}
.product__cart:not(.hidden),
.product__cart-loader:not(.hidden) {
	display: flex;
}
.product__cart-loader > svg {
	width: 24px;
	height: 24px;
}

/* <------- CATEGORY -------> */
.category {
	width: 100%;
}
.category:hover .category__card > img {
	transform: scale(102%);
}
.category__card {
	width: 100%;
	height: 100%;
	position: relative;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	border-radius: 10px;
}
.category__card > img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: inherit;
	object-fit: cover;
	object-position: center;
	transition: transform 250ms ease-out;
}
.category__box {
	position: relative;
	padding: 100px 20px 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
	color: #fff;
}
.category__name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}
.category__description {
	font-size: 14px;
	line-height: 1.5;
	margin-top: 8px;
	max-height: 100px;
	overflow: auto;
}

/* <------- POST -------> */
.post {
	overflow: hidden;
}
.post:hover .post__thumbnail > img {
	transform: scale(102%);
}
.post:nth-child(3n-2) {
	position: relative;
}
.post:nth-child(3n-2) .post__box {
	max-width: 380px;
	height: fit-content;
	position: absolute;
	bottom: 0;
	right: 0;
}
.post__card {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.post__thumbnail {
	overflow: hidden;
}
.post:nth-child(3n-2) .post__thumbnail {
	width: 100%;
	height: 100%;
}
.post:not(:nth-child(3n-2)) .post__thumbnail {
	position: relative;
	width: 100%;
	min-height: 230px;
	max-height: 230px;
}
.post__thumbnail > img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 250ms ease-out;
}
.post__box {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 15px;
	padding: 25px;
	border: 1px solid #eaeaea;
	background-color: #fff;
}
.post__box-details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
}
.post__box-name {
	text-transform: uppercase;
	font-size: 12px;
	line-height: 1.5;
	color: #636363;
}
.post__box-excerpt,
.post__box-date {
	font-size: 14px;
}
.post__box-excerpt {
	line-height: 1.9;
}

/* <------- COURSE -------> */
.course {
	border: 1px solid #e8e8e8;
}
.course__cols,
.course__foot {
	display: flex;
}
.course__col:first-child,
.course__price:first-child,
.course__col:nth-child(2),
.course__price:nth-child(2) {
	border-right: 1px solid #e8e8e8;
}
.course__col:first-child,
.course__price:first-child {
	min-width: 330px;
	max-width: 330px;
	width: 100%;
}
.course__col:nth-child(2),
.course__col:last-child {
	overflow: auto;
	padding: 40px;
}
.course__col > img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.course__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.7;
	font-size: 14px;
}
.course__col > h1,
.course__col > h2,
.course__col > h3,
.course__col > h4,
.course__col > h5,
.course__col > h6 {
	font-weight: 700;
}
.course__col > h1 {
	font-size: 24px;
}
.course__col > h2 {
	font-size: 20px;
}
.course__col > h3 {
	font-size: 18px;
}
.course__col > h4 {
	font-size: 16px;
}
.course__col > h5,
.course__col > p {
	font-size: 14px;
}
.course__col > h6 {
	font-size: 12px;
}
.course__col > ul,
.course__col > ol {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	padding-left: 20px;
}
.course__col > ul li {
	list-style: disc;
}
.course__col > ol li {
	list-style: numeric;
}
.course__button {
	font-size: 13px;
}
.course__foot {
	height: 45px;
	border-top: 1px solid #e8e8e8;
}
.course__price {
	min-width: fit-content;
	height: 100%;
}
.course__price,
.course__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 25px;
}
.course__price:first-child {
	background-color: #e42e9c;
	color: #fff;
}
.course__amount {
	display: flex;
	align-items: center;
	gap: 10px;
}
.course__amount > span {
	font-weight: 600;
}
.course__amount > i {
	font-size: 20px;
}
.course__note {
	font-size: 13px;
}
.course__button {
	width: 100%;
	text-align: center;
	font-size: 14px;
	color: #636363;
	background-color: #f8f8f8;
}
@media (max-width: 1200px) {
	.course__col:nth-child(2),
	.course__col:last-child {
		padding: 20px;
	}
	.course__col:first-child,
	.course__price:first-child {
		min-width: 250px;
		max-width: 250px;
		width: 100%;
	}
	.course__amount,
	.course__amount > i {
		font-size: 15px;
	}
	.course__col {
		gap: 8px;
		font-size: 13px;
	}
	.course__col > h1 {
		font-size: 20px;
	}
	.course__col > h2 {
		font-size: 18px;
	}
	.course__col > h3 {
		font-size: 16px;
	}
	.course__col > h4 {
		font-size: 14px;
	}
	.course__col > h5 {
		font-size: 12px;
	}
	.course__col > h6 {
		font-size: 10px;
	}
	.course__col > ul,
	.course__col > ol {
		gap: 2px;
		padding-left: 15px;
	}
}
@media (max-width: 1000px) {
	.course__foot {
		height: auto;
		flex-wrap: wrap;
	}
	.course__price,
	.course__button {
		padding: 15px 10px;
		min-height: 40px;
	}
	.course__price:nth-child(2) {
		width: calc(100% - 250px);
		border-right: 0;
	}
	.course__button {
		width: 100%;
	}
	.course__amount {
		gap: 8px;
	}
	.course__amount,
	.course__amount > i {
		font-size: 14px;
	}
	.course__cols {
		flex-wrap: wrap;
	}
	.course__col:nth-child(2) {
		width: calc(100% - 250px);
		border-right: 0;
	}
	.course__col:last-child {
		width: 100%;
		border-top: 1px solid #e8e8e8;
	}
}
@media (max-width: 800px) {
	.course__price:first-child {
		min-width: 100%;
		max-width: 100%;
	}
	.course__price:nth-child(2) {
		width: 100%;
	}
	.course__price:first-child,
	.course__col:nth-child(2),
	.course__price:nth-child(2) {
		border-right: 0;
	}
}
@media (max-width: 600px) {
	.course__price {
		flex-wrap: wrap;
	}
	.course__col:first-child {
		min-width: 100%;
		max-width: 100%;
		max-height: 250px;
		border-right: 0;
	}
	.course__col:nth-child(2) {
		width: 100%;
	}
}
