/* ----------------------------------------------------------------------------------------
* Section        : Product Filter Gallery (product.php)
* ---------------------------------------------------------------------------------------- */

.product-filter-gallery{
	padding: 100px 0;
}

/* Filter menu */
.gallery-filter-menu{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 50px;
}

.gallery-filter-btn{
	position: relative;
	display: inline-flex;
	align-items: center;
	font-family: var(--default-font);
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
	text-transform: capitalize;
	color: var(--primary-color);
	background-color: transparent;
	border: 1px solid var(--divider-color);
	border-radius: 40px;
	padding: 10px 22px;
	cursor: none;
	transition: all 0.35s ease-in-out;
}

.gallery-filter-btn:hover{
	border-color: var(--accent-color);
	color: var(--accent-color);
}

.gallery-filter-btn.active{
	background-color: var(--accent-color);
	border-color: var(--accent-color);
	color: var(--white-color);
}

.gallery-filter-btn .gallery-filter-count{
	display: inline-block;
	margin-left: 8px;
	opacity: 0.6;
	font-size: 12px;
}

/* Grid */
.gallery-grid-item{
	margin-bottom: 30px;
}

.gallery-item{
	position: relative;
	display: block;
	border-radius: 12px;
	overflow: hidden;
}

.gallery-item figure{
	position: relative;
	display: block;
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
}

.gallery-item figure img{
	width: 100%;
	aspect-ratio: 1 / 1.05;
	object-fit: cover;
	border-radius: 12px;
	transition: transform 0.6s ease-in-out;
}

.gallery-item:hover figure img{
	transform: scale(1.08);
}

.gallery-item-overlay{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	padding: 18px;
	background: linear-gradient(0deg, rgba(22, 22, 22, 0.75) 0%, rgba(22, 22, 22, 0) 65%);
	opacity: 0;
	transform: translateY(8px);
	transition: all 0.4s ease-in-out;
}

.gallery-item:hover .gallery-item-overlay{
	opacity: 1;
	transform: translateY(0);
}

.gallery-item-category{
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3em;
	color: var(--white-color);
	text-transform: capitalize;
}

.gallery-item-icon{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-width: 38px;
	border-radius: 50%;
	background-color: var(--accent-color);
	color: var(--white-color);
	font-size: 15px;
	transition: all 0.4s ease-in-out;
}

.gallery-item:hover .gallery-item-icon{
	background-color: var(--white-color);
	color: var(--primary-color);
}

/* Filter transition state */
.gallery-grid-item.gallery-item-hidden{
	display: none;
}

.gallery-empty-state{
	display: none;
	padding: 40px 0;
	text-align: center;
	color: var(--text-color);
}

.gallery-empty-state.is-visible{
	display: block;
}

@media (max-width: 767px){
	.product-filter-gallery{
		padding: 60px 0;
	}

	.gallery-filter-menu{
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		margin-bottom: 35px;
		padding-bottom: 8px;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	.gallery-filter-menu::-webkit-scrollbar{
		display: none;
	}

	.gallery-filter-btn{
		flex: 0 0 auto;
		white-space: nowrap;
	}
}
