/* Estilos para el frontend */
section#category {
	/*padding: 50px 0;*/
	margin-bottom: 30px;
}

section#category .secBg {
	background-color: #f9f9f9;
}

.heading.category-heading {
	margin-bottom: 30px;
}

.cat-head i {
	font-size: 24px;
	margin-right: 10px;
	vertical-align: middle;
	color: #444;
}

.cat-head h4 {
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	font-size: 20px;
	color: #444;
}

#owl-demo-cat {
	margin-bottom: 30px;
	display: flex;
	flex-wrap: wrap;
    gap: 15px;
	justify-content: center;
}

.item-cat {
	margin: 0 15px 20px;
	width: calc(25% - 30px);
	transition: all 0.3s ease;
}

.thumb-border {
	border-radius: 5px;
	overflow: hidden;
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}
.thumb-border:hover {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	transform: translateY(-5px);
}

.premium-img {
	position: relative;
	overflow: hidden;
	margin: 0;
}

.premium-img img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
/**
.hover-posts {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hover-posts span {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hover-posts span i {
	color: #444;
	font-size: 18px;
}
**/
.premium-img:hover .hover-posts {
	opacity: 1;
}

.item-cat h6 {
	padding: 15px;
	margin: 0;
	text-align: center;
}

.item-cat h6 a {
	color: #444;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease;
}

.item-cat h6 a:hover {
	color: #e96969;
}

.row-btn {
	margin-top: 20px;
}

.button.radius {
	border-radius: 3px;
	background-color: #e96969;
	color: #fff;
	padding: 12px 25px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	display: inline-block;
	transition: all 0.3s ease;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.button.radius:hover {
	background-color: #d45454;
}

/* Estilos para el editor */
.category-home-block-editor {
	background-color: #f9f9f9;
	padding: 30px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.category-items-container {
	.block-editor-inner-blocks {
		.block-editor-block-list__layout {
			display: flex;
			flex-wrap: wrap;
			margin: 20px -15px;
		}
	}
}

.item-cat.item.thumb-border {
	background-color: #fff;
	border-radius: 5px;
	overflow: hidden;
}

.category-button-container {
	margin-top: 20px;
	text-align: center;
}

.button-url-input,
.link-url-input {
	margin-top: 10px;
	padding: 10px;
	background-color: #f0f0f0;
	border-radius: 5px;
}

.button-url-input label,
.link-url-input label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.button-url-input input,
.link-url-input input {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 3px;
}

.image-button {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	cursor: pointer;
}

.image-button img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.hover-posts-preview {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hover-posts-preview i {
	color: #444;
	font-size: 14px;
}

.category-details {
	padding: 15px;
	text-align: center;
}

.item-cat figure a.hover-posts span i {
	font-size: 18px;
}
.item-cat:hover a.hover-posts {
	visibility: visible;
	transform: scale(1);
}

.hide-block>.item-cat {
	width: 100%;
    button {
        height: 100%;
    }
}
/* Ajustes responsivos */
@media screen and (max-width: 1024px) {
	.item-cat {
		width: calc(33.33% - 30px);
	}
}

@media screen and (max-width: 768px) {
	.item-cat {
		width: calc(100% - 30px);
	}
}

@media screen and (max-width: 480px) {
	.item-cat {
		width: calc(100% - 30px);
	}
}
