/* Styles for dynamic category product listings */

.bl-shortcode-dynamic-category {
	margin-bottom: 3rem;
}

.bl-shortcode-dynamic-category-title {
	font-size: 1.8em;
	color: #333;
	margin-bottom: 1.5rem;
	text-align: center;
	padding-bottom: 10px;
	border-bottom: 2px solid #eee;
}

.bl-shortcode-dynamic-category-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.bl-shortcode-dynamic-category .product {
	text-align: center;
	background-color: #fff;
	border: 1px solid #eee;
	padding: 15px;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.bl-shortcode-dynamic-category .product:hover {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	transform: translateY(-5px);
}

.bl-shortcode-dynamic-category .product img {
	max-width: 100%;
	height: auto;
	margin-bottom: 15px;
}

.bl-shortcode-dynamic-category .product h2.woocommerce-loop-product__title {
	font-size: 1.2em;
	margin-bottom: 10px;
	min-height: 3em;
	/* Ensure consistent height for titles */
}

.bl-shortcode-dynamic-category .product .price {
	font-size: 1.1em;
	font-weight: bold;
	color: #007bff;
	/* Example primary color */
	margin-bottom: 15px;
}

.bl-shortcode-dynamic-category .product .button {
	background-color: #E78034;
	/* Example success color */
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 3px;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.3s ease;
}

.bl-shortcode-dynamic-category .product .button:hover {
	background-color: #0B3C5D;
}

/* Adjustments for different column counts if necessary */
.bl-shortcode-dynamic-category.wp-stack-type-substitute .products.columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.bl-shortcode-dynamic-category.wp-stack-type-related .products.columns-4 {
	display: flex;
	gap: 1em;
}

ul.products.columns-4 {
	display: flex;
	gap: 1em;
}

/* Styles for the new parts dropdown */
.bl-shortcode-dynamic-category-parts-selector {
	margin-top: 20px;
	margin-bottom: 20px;
}

.bl-shortcode-dynamic-category-parts-dropdown {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1em;
	box-sizing: border-box;
	/* Ensures padding doesn't affect overall width */
}

.bl-shortcode-dynamic-category-parts-dropdown option {
	padding: 10px;
}

/* Hide the product grid for parts type, as we are using a dropdown */
.bl-shortcode-dynamic-category.wp-stack-type-parts .bl-shortcode-dynamic-category-products-grid {
	display: none;
}

.wpsa-subcat-grid {
	display: grid;
	/* 4 oszlopos grid asztali nézeten, automatikusan tördelődik */
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 15px;
	margin-bottom: 30px;
}

.wpsa-subcat-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 10px 15px;
	text-decoration: none !important;
	overflow: hidden;
	min-height: 70px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpsa-subcat-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* A kék, ferde levágású háttér */
.wpsa-subcat-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 75%;
	/* Állítsd be, hogy meddig érjen a kék sáv */
	/* Kép alapján egy enyhe gradiens vagy tiszta kék */
	background: linear-gradient(90deg, #0076b6 0%, #2099d8 100%);
	clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
	z-index: 1;
}

/* Aktív/elköszönő elem (sötétebb háttér) */
.wpsa-subcat-item--current::before {
	background: linear-gradient(90deg, #0B3C5D 0%, #005a8c 100%);
}

.wpsa-subcat-title {
	position: relative;
	z-index: 2;
	font-weight: 700;
	color: #ffffff;
	/* Fehér betűszín a kék háttéren */
	font-size: 14px;
	line-height: 1.2;
	width: 65%;
	/* Hogy ne folyjon rá a képre */
	display: block;
}

/* A darabszám elrejtése vagy formázása (a képen nem szerepel) */
.wpsa-subcat-title .count {
	display: none;
	/* A mintaképen nincs darabszám, ezért elrejtjük */
}

.wpsa-subcat-image {
	position: relative;
	z-index: 2;
	max-width: 45px;
	/* Kis ikon méret a kép alapján */
	max-height: 45px;
	width: auto;
	object-fit: contain;
	margin-left: auto;
	/* Jobbra tolja a képet */
}