/* Shop — Kategorije izdelkov page template.
   Grid layout comes from Flatsome (.row.large-columns-4.medium-columns-3.small-columns-2.equalize-box).
   Only card-level visuals live here. */


.av-shop__sidebar {
	padding-right: 1rem;
}

@media (max-width: 850px) {
	.av-shop__sidebar { padding-right: 0; }
}

/* ── Subcategory tiles on WC archives ────────────────────────────────────
   woocommerce/content-product-cat.php: the <a> is opened/closed by WC's
   before/after_subcategory hooks, so the av-cat-card classes sit on an inner
   <div>. Stretch the anchor so equalize-box heights still work. */
.product-category .col-inner > a {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* ── Category card (image + body) ────────────────────────────────────── */
.av-cat-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #eef0f2;
	border-radius: 16px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	height: 100%;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.av-cat-card:hover {
	transform: translateY(-2px);
	border-color: #92c096;
	box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
	color: inherit;
}

.av-cat-card .box-image {
	background: #f7efe1;
	padding: 1.5rem;
	margin: 0;
}

.av-cat-card .box-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	display: block;
	margin: 0;
}

.av-cat-card .box-text {
	padding: 1.125rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .375rem;
	flex: 1;
	text-align: left;
}

.av-cat-card__name {
	font-weight: 700;
	color: #101828;
	font-size: 1.125rem;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
}

.av-cat-card__desc {
	color: var(--accent-color-text);
	font-size: .875rem;
	margin: 0;
	flex: 1;
}

.av-cat-card__desc-backup {
	color: var(--accent-color-text);
	font-size: .875rem;
	margin: 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.av-cat-card__cta {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	color: var(--fs-color-primary);
	font-size: 0.875rem;
	font-weight: 500;
	margin-top: .5rem;
}

.av-cat-card__cta svg { transition: transform .15s ease; }
.av-cat-card:hover .av-cat-card__cta svg { transform: translateX(2px); }

/* ── CTA card (Vsi izdelki) ──────────────────────────────────────────── */
.av-cat-cta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2rem;
	background: var(--fs-color-primary);
	border-radius: 16px;
	padding: 2rem 1rem;
	color: #fff;
	text-decoration: none;
	height: 100%;
	min-height: 360px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.av-cat-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(146, 192, 150, .35);
	color: #fff;
}

.av-cat-cta__title {
	font-weight: 600;
	text-align: center;
	margin-bottom: 2rem;
	line-height: 1.15;
	color: #fff;
}

.av-cat-cta__bottom {
	display: flex;
	flex-direction: column;
	gap: .375rem;
}

.av-cat-cta__lead {
	font-size: .9375rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, .92);
}

.av-cat-cta__link {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	color: #fff;
	font-weight: 600;
	font-size: .9375rem;
}

.av-cat-cta__link svg { transition: transform .15s ease; }
.av-cat-cta:hover .av-cat-cta__link svg { transform: translateX(2px); }
