/**
 * Arhiva kategorije — editorial title + toolbar + bijeli content.
 * Version: 1.2.1
 */

@keyframes runnerp-category-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Content — bijela */
body.runnerp-category-archive,
body.runnerp-category-archive #qodef-page-outer,
body.runnerp-category-archive #qodef-page-content,
body.runnerp-category-archive .qodef-page-content-section,
body.runnerp-category-archive .qodef-page-content-holder,
body.runnerp-category-archive #qodef-page-inner,
body.runnerp-category-archive .qodef-grid-item,
body.runnerp-category-archive #qodef-woo-page,
body.runnerp-category-archive .qodef-woo-product-list {
	background-color: #fff !important;
}

/* ——— Title ——— */
body.runnerp-category-archive .qodef-page-title.runnerp-category-title,
body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-inner {
	position: relative;
	height: auto !important;
	min-height: 0 !important;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(255, 252, 250, 0.95) 0%, transparent 62%),
		linear-gradient(180deg, var(--runnerp-beige-50, #FBF7F2) 0%, var(--runnerp-beige-100, #F3EBE3) 100%) !important;
	border-bottom: 1px solid rgba(74, 52, 40, 0.08);
}

body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.3;
	background-image:
		radial-gradient(circle at 16% 70%, rgba(166, 124, 82, 0.12) 0 1px, transparent 1.5px),
		radial-gradient(circle at 84% 26%, rgba(110, 78, 58, 0.1) 0 1px, transparent 1.5px);
	background-size: 28px 28px, 36px 36px;
	background-position: 0 0, 12px 8px;
}

body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-inner::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 1;
	width: min(150px, 36vw);
	height: 2px;
	transform: translateX(-50%);
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--runnerp-cta-color, #A67C52) 50%,
		transparent 100%
	);
	opacity: 0.85;
}

body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-content {
	position: relative;
	z-index: 2;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 24px 44px !important;
	text-align: center !important;
	box-sizing: border-box;
	animation: runnerp-category-in 0.7s ease both;
}

body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-content::before {
	content: "Legia Beauty Expert";
	display: block;
	margin: 0 0 12px;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.28em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--runnerp-taupe-500, #A67C52);
}

body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-title.entry-title,
body.runnerp-category-archive .qodef-page-title.runnerp-category-title h1.qodef-m-title,
body.runnerp-category-archive .qodef-page-title.runnerp-category-title h2.qodef-m-title,
body.runnerp-category-archive .qodef-page-title.runnerp-category-title h3.qodef-m-title,
body.runnerp-category-archive .qodef-page-title.runnerp-category-title h4.qodef-m-title,
body.runnerp-category-archive .qodef-page-title.runnerp-category-title h5.qodef-m-title,
body.runnerp-category-archive .qodef-page-title.runnerp-category-title h6.qodef-m-title {
	margin: 0 0 14px !important;
	padding: 0 !important;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif) !important;
	font-size: clamp(2.1rem, 4.6vw, 3.2rem) !important;
	font-weight: 600 !important;
	font-style: normal !important;
	letter-spacing: 0.06em !important;
	line-height: 1.1 !important;
	text-transform: uppercase !important;
	color: var(--runnerp-sienna-800, #4A3428) !important;
}

body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-subtitle {
	display: block !important;
	margin: 0 !important;
	max-width: 32em;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif) !important;
	font-size: clamp(1.05rem, 1.8vw, 1.2rem) !important;
	font-weight: 400 !important;
	font-style: italic !important;
	line-height: 1.5 !important;
	color: var(--runnerp-sienna-700, #6E4E3A) !important;
}

body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-breadcrumbs {
	display: none !important;
}

/* ——— Toolbar ——— */
.runnerp-category-toolbar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 0 0 28px;
	padding: 8px 0 4px;
	box-sizing: border-box;
	animation: runnerp-category-in 0.7s ease 0.08s both;
}

.runnerp-category-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 920px;
}

.runnerp-category-chips__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 14px;
	box-sizing: border-box;
	border: 1px solid rgba(74, 52, 40, 0.16);
	background: #fff;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif);
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--runnerp-sienna-800, #4A3428) !important;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.runnerp-category-chips__item:hover {
	border-color: rgba(74, 52, 40, 0.4);
}

.runnerp-category-chips__item.is-active {
	background: var(--runnerp-sienna-800, #4A3428);
	border-color: var(--runnerp-sienna-800, #4A3428);
	color: #FFFCFA !important;
}

/* Sakrij default WC result/ordering holdere ako ostaju */
body.runnerp-category-archive .qodef-woo-results,
body.runnerp-category-archive .woocommerce-result-count,
body.runnerp-category-archive .woocommerce-ordering,
body.runnerp-category-archive .woocommerce-products-header {
	display: none !important;
}

/* ——— Product grid (kao home bestsellers) ——— */
body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image {
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif);
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image ul.products {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin: 0 -10px !important;
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image ul.products > .product {
	display: flex;
	flex-direction: column;
	float: none;
	width: 25% !important;
	padding: 0 10px !important;
	margin: 0 0 28px !important;
	box-sizing: border-box;
}

body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-inner {
	flex: 1 1 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(74, 52, 40, 0.12);
	overflow: hidden;
	transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
	body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-inner:hover {
		transform: translateY(-4px);
		border-color: rgba(74, 52, 40, 0.22);
		box-shadow: 0 16px 36px rgba(74, 52, 40, 0.1);
	}
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image {
	display: grid !important;
	grid-template-columns: 1fr !important;
	grid-template-rows: auto auto !important;
	position: relative;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible;
	background:
		radial-gradient(90% 70% at 50% 0%, rgba(166, 124, 82, 0.06) 0%, transparent 55%),
		linear-gradient(180deg, var(--runnerp-beige-50, #FBF7F2) 0%, #fff 100%) !important;
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image::before {
	content: "" !important;
	grid-row: 1 !important;
	grid-column: 1 !important;
	display: block !important;
	width: 100% !important;
	height: 0 !important;
	padding-bottom: 125% !important;
	background-color: var(--runnerp-beige-100, #F3EBE3) !important;
	pointer-events: none !important;
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image::after {
	content: none !important;
	display: none !important;
}

/* Slika — gornji red (4:5) */
body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image > a {
	grid-row: 1 !important;
	grid-column: 1 !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: auto !important;
	width: 100% !important;
	height: 0 !important;
	padding: 0 !important;
	padding-bottom: 125% !important;
	margin: 0 !important;
	overflow: hidden !important;
	box-sizing: content-box !important;
	z-index: 0 !important;
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image > img {
	grid-row: 1 !important;
	grid-column: 1 !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 5 !important;
	object-fit: cover;
	z-index: 0 !important;
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image > a img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transform: none !important;
	transition: transform 0.55s ease;
}

@media (hover: hover) and (pointer: fine) {
	body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-inner:hover .qodef-woo-product-image > a img {
		transform: scale(1.04);
	}
}

/*
 * Hover overlay — bijeli sloj preko CIJELE slike (rub do ruba), CTA centriran.
 */
body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner,
body.runnerp-category-archive #qodef-woo-page .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner {
	grid-row: 1 !important;
	grid-column: 1 !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: auto !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: 4 / 5 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-sizing: border-box !important;
	background: rgba(255, 252, 250, 0.95) !important;
	background-color: rgba(255, 252, 250, 0.95) !important;
	background-image: none !important;
	display: grid !important;
	place-items: center !important;
	align-content: center !important;
	justify-content: center !important;
	z-index: 4 !important;
	opacity: 0;
	visibility: visible !important;
	pointer-events: none;
	overflow: hidden !important;
	transform: none !important;
	transition: opacity 0.3s ease !important;
}

body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-inner:hover .qodef-woo-product-image-inner,
body.runnerp-category-archive .qodef-woo-product-list .product:hover .qodef-woo-product-image-inner,
body.runnerp-category-archive #qodef-woo-page .qodef-woo-product-list .qodef-woo-product-inner:hover .qodef-woo-product-image-inner,
body.runnerp-category-archive #qodef-woo-page .qodef-woo-product-list .product:hover .qodef-woo-product-image-inner {
	opacity: 1 !important;
	pointer-events: auto;
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner > .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	transform: none !important;
	pointer-events: none !important;
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner > .button,
body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner > .added_to_cart,
body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner > .add_to_cart_button,
body.runnerp-category-archive #qodef-woo-page .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner > .button,
body.runnerp-category-archive #qodef-woo-page .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner > .added_to_cart,
body.runnerp-category-archive #qodef-woo-page .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner > .add_to_cart_button {
	position: relative !important;
	inset: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 168px !important;
	max-width: calc(100% - 24px);
	height: auto !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 14px 36px !important;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif) !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	font-style: normal !important;
	letter-spacing: 0.08em !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	background: var(--runnerp-cta-color, #A67C52) !important;
	background-color: var(--runnerp-cta-color, #A67C52) !important;
	border: 1px solid var(--runnerp-cta-color, #A67C52) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--runnerp-cta-text-color, #FBF7F2) !important;
	white-space: nowrap !important;
	opacity: 1 !important;
	transform: none !important;
	z-index: 1 !important;
	grid-area: 1 / 1 !important;
	justify-self: center !important;
	align-self: center !important;
}

body.runnerp-category-archive #qodef-woo-page .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner > .button:hover,
body.runnerp-category-archive #qodef-woo-page .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner > .added_to_cart:hover,
body.runnerp-category-archive #qodef-woo-page .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner > .add_to_cart_button:hover {
	background: var(--runnerp-cta-hover-color, #6E4E3A) !important;
	background-color: var(--runnerp-cta-hover-color, #6E4E3A) !important;
	border-color: var(--runnerp-cta-hover-color, #6E4E3A) !important;
	color: var(--runnerp-cta-text-color, #FFFCFA) !important;
}

/* Naslov + cijena ispod slike */
body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner-initial {
	grid-row: 2 !important;
	grid-column: 1 !important;
	position: relative !important;
	inset: auto !important;
	width: 100% !important;
	height: auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px;
	padding: 18px 14px 20px !important;
	box-sizing: border-box !important;
	background: #fff !important;
	border-top: 1px solid rgba(74, 52, 40, 0.08);
	text-align: center !important;
	z-index: 1 !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner-initial .qodef-woo-product-title,
body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner-initial .qodef-woo-product-title a,
body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-title,
body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-title a {
	margin: 0 !important;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif) !important;
	font-size: clamp(1.02rem, 1.6vw, 1.18rem) !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	color: var(--runnerp-sienna-800, #4A3428) !important;
	text-decoration: none !important;
}

body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-title a:hover {
	color: var(--runnerp-taupe-500, #A67C52) !important;
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner-initial .price,
body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner-initial .price .amount,
body.runnerp-category-archive .qodef-woo-product-list .price,
body.runnerp-category-archive .qodef-woo-product-list .price .amount {
	margin: 0 !important;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif) !important;
	font-size: 1.05rem !important;
	font-weight: 500 !important;
	font-style: italic !important;
	color: var(--runnerp-sienna-800, #4A3428) !important;
}

body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image .onsale,
body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image .out-of-stock {
	grid-row: 1;
	grid-column: 1;
	z-index: 5;
}

@media only screen and (max-width: 1024px) {
	body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image ul.products > .product {
		width: 50% !important;
	}
}

@media only screen and (max-width: 767px) {
	body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-inner:hover {
		transform: none;
		box-shadow: none;
	}

	body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-inner:hover .qodef-woo-product-image > a img {
		transform: none;
	}
}

@media only screen and (max-width: 480px) {
	body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image ul.products > .product {
		width: 50% !important;
	}
}

/* Empty */
.runnerp-category-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 48px 20px 64px;
	text-align: center;
}

.runnerp-category-empty__text {
	margin: 0;
	max-width: 26em;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif);
	font-size: 1.15rem;
	font-style: italic;
	line-height: 1.5;
	color: var(--runnerp-sienna-700, #6E4E3A);
}

.runnerp-category-empty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 24px;
	box-sizing: border-box;
	border: 1px solid var(--runnerp-sienna-800, #4A3428);
	background: var(--runnerp-sienna-800, #4A3428);
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: #FFFCFA !important;
}

.runnerp-category-empty__btn:hover {
	background: var(--runnerp-cta-hover-color, #6E4E3A);
	border-color: var(--runnerp-cta-hover-color, #6E4E3A);
	color: #FFFCFA !important;
}

@media only screen and (max-width: 767px) {
	body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-content {
		padding: 36px 16px 32px !important;
	}

	body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-content::before {
		margin-bottom: 10px;
		font-size: 11px;
		letter-spacing: 0.22em;
	}

	body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-title.entry-title,
	body.runnerp-category-archive .qodef-page-title.runnerp-category-title h4.qodef-m-title {
		font-size: clamp(1.85rem, 8vw, 2.4rem) !important;
	}

	.runnerp-category-toolbar {
		margin: 0 0 22px;
		padding: 4px 0 0;
		gap: 0;
	}

	.runnerp-category-chips {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
		max-width: none;
		padding: 0;
		box-sizing: border-box;
	}

	.runnerp-category-chips__item {
		width: 100%;
		min-height: 44px;
		padding: 10px 12px;
		font-size: 0.82rem;
		letter-spacing: 0.05em;
		white-space: normal;
		hyphens: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.runnerp-category-archive .qodef-page-title.runnerp-category-title .qodef-m-content,
	.runnerp-category-toolbar,
	body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-inner,
	body.runnerp-category-archive .qodef-woo-product-list .qodef-woo-product-image > a img,
	body.runnerp-category-archive .qodef-woo-product-list.qodef-item-layout--info-on-image .qodef-woo-product-image-inner {
		animation: none;
		transition: none;
	}
}
