/**
 * Product Categories - Gallery-style
 * Minimal, premium, editorial. Architectural portfolio feel.
 * Category name over image. No card design.
 *
 * @package Hello_Elementor_Child
 */

/* White base with small dark gradient at bottom */
.yakda-product-categories {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 64px 0 80px;
	/*background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 70%, #eef1f5 88%, #1a2332 100%);*/
}

@media (min-width: 768px) {
	.yakda-product-categories {
		padding: 80px 0 100px;
	}
}

.yakda-product-categories__header {
	text-align: center;
	margin-bottom: 48px;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 24px;
}

.yakda-product-categories__title {
	color: #1a1a1a;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.yakda-product-categories__subtitle {
	margin: 0;
	color: #6b6b6b;
	font-size: 0.9375rem;
	line-height: 1.6;
	letter-spacing: 0.01em;
}
/* Normal responsive grid layout */
.yakda-product-categories__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 768px) {
	.yakda-product-categories__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (min-width: 992px) {
	.yakda-product-categories__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (min-width: 1200px) {
	.yakda-product-categories__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 24px;
	}
}
/* Equal height cards */
.yakda-product-categories__item {
	position: relative;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;   /* makes all cards perfect square */
	display: block;
}

.yakda-product-categories__empty {
	column-span: all;
	text-align: center;
	color: #6b6b6b;
	padding: 60px 24px;
	font-size: 0.9375rem;
}

/* Masonry item - 3D floating effect over dark background */
.yakda-product-categories__item {
	display: block;
	position: relative;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin-bottom: 12px;
	overflow: hidden;
	text-decoration: none;
	border-radius: 8px;
	box-shadow:
		0 4px 6px rgba(0, 0, 0, 0.4),
		0 10px 20px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.05);
	transform: translateZ(0);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	max-height:350px;
	height: 100%;
}

.yakda-product-categories__item:hover {
	transform: translateY(-8px) translateZ(0);
	box-shadow:
		0 12px 24px rgba(0, 0, 0, 0.5),
		0 24px 48px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(255, 255, 255, 0.08),
		0 0 40px rgba(201, 162, 39, 0.15);
}

@media (min-width: 768px) {
	.yakda-product-categories__item {
		margin-bottom: 16px;
	}
}

@media (min-width: 992px) {
	.yakda-product-categories__item {
		margin-bottom: 20px;
	}
}

@media (min-width: 1200px) {
	.yakda-product-categories__item {
		margin-bottom: 24px;
	}
}

/* Varied aspect ratios for masonry visual interest */
.yakda-product-categories__item:nth-child(5n+1) { aspect-ratio: 4 / 5; }
.yakda-product-categories__item:nth-child(5n+2) { aspect-ratio: 3 / 4; }
.yakda-product-categories__item:nth-child(5n+3) { aspect-ratio: 1 / 1; }
.yakda-product-categories__item:nth-child(5n+4) { aspect-ratio: 5 / 4; }
.yakda-product-categories__item:nth-child(5n+5) { aspect-ratio: 4 / 3; }

.yakda-product-categories__image {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.yakda-product-categories__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.yakda-product-categories__item:hover .yakda-product-categories__image img {
	transform: scale(1.03);
}
.yakda-product-categories__item:hover .yakda-product-categories__label {
	color: #fff;
}

.yakda-product-categories__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2a3544 0%, #1e2836 100%);
}

/* Overlay - dark gradient for text readability on light/white images */
.yakda-product-categories__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	transition: background 0.4s ease;
}

.yakda-product-categories__item:hover .yakda-product-categories__overlay {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 100%);
}

/* Category name over image - editorial typography */
.yakda-product-categories__label {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 20px;
	color: #09352c;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.02em;
	transition: transform 0.3s ease, color 0.3s ease;
}

.yakda-product-categories__item:hover .yakda-product-categories__label {
	transform: translateY(-2px);
}
/*short code css*/
