/**
 * Pharmacy shop archive — layout, sidebar accordion, toolbar, product cards.
 * Scoped with .ufarm-pharmacy-shop-archive where useful.
 *
 * Tweak brand colors via :root on .ufarm-shop-shell.
 */

/*
 * Variablat e shop-it: masthead-i (search, breadcrumbs) është jashtë .ufarm-shop-shell,
 * prandaj i vendosim te body.ufarm-pharmacy-shop-archive që var() të jenë të vlefshëm kudo në faqe.
 */
body.ufarm-pharmacy-shop-archive {
	--ufarm-shop-green: #0062d2;
	--ufarm-shop-green-hover: #022d5f;
	--ufarm-shop-accent: #c2186d;
	--ufarm-shop-border: #e0e0e0;
	--ufarm-shop-text: #333333;
	--ufarm-shop-muted: #666666;
	--ufarm-shop-muted-light: #999999;
	--ufarm-shop-breadcrumb-link: #bbbbbb;
	--ufarm-shop-breadcrumb-sep: #dddddd;
	--ufarm-shop-radius-lg: 10px;
	--ufarm-shop-radius-pill: 999px;
}

.ufarm-shop-shell {
	--ufarm-shop-green: #0062d2;
	--ufarm-shop-green-hover: #022d5f;
	--ufarm-shop-accent: #c2186d;
	--ufarm-shop-border: #e0e0e0;
	--ufarm-shop-text: #333333;
	--ufarm-shop-muted: #666666;
	--ufarm-shop-muted-light: #999999;
	--ufarm-shop-breadcrumb-link: #bbbbbb;
	--ufarm-shop-breadcrumb-sep: #dddddd;
	--ufarm-shop-radius-lg: 10px;
	--ufarm-shop-radius-pill: 999px;
}

/* -------------------------------------------------------------------------
   Archive masthead (breadcrumbs, centered title + description, divider)
   ------------------------------------------------------------------------- */
.ufarm-shop-masthead {
	padding: 15px 0 0;
	margin: 0;
	background: #fff;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Shirit transporti — i njëjti stil vijë/hije si .ufarm-shop-product-search__control */
.ufarm-shop-free-shipping-strip {
	width: 100%;
	margin: -23px auto 0;
	padding: 7px 15px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 0px;
	border-right:0px;
	border-left:0px;
	box-shadow:
		0 2px 8px rgba(15, 35, 70, 0.07),
		0 8px 28px rgba(15, 35, 70, 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	margin-bottom:25px;
}



.ufarm-shop-free-shipping-strip__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	max-width: 100%;
	margin: 0 auto;
	text-align: center;
}

.ufarm-shop-free-shipping-strip__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #000000;
	font-size: 18px;
	line-height: 1;
}

.ufarm-shop-free-shipping-strip__icon i {
	display: block;
}

.ufarm-shop-free-shipping-strip__text {
	flex: 0 1 auto;
	margin: 0;
	padding: 0;
	font-size: 15px!important;
	font-weight: 500;
	line-height: 1.45;
	color: #000000;
	letter-spacing: 0.01em;
	text-align: center;
}

@media (max-width: 575px) {
	.ufarm-shop-free-shipping-strip {
		padding: 11px 16px;
	}

	.ufarm-shop-free-shipping-strip__inner {
		gap: 8px 10px;
	}

	.ufarm-shop-free-shipping-strip__icon {
		font-size: 16px;
	}

	.ufarm-shop-free-shipping-strip__text {
		font-size: 14px;
	}
}

/*
 * Product search — pill: fushë e bardhë + X pastrim + buton blu me gradient (ikonë e bardhë).
 */
.ufarm-shop-masthead__search-wrap {
	width: 100%;
	max-width: min(920px, 92vw);
	margin: 0 auto 28px;
	padding: 0 12px;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.ufarm-shop-masthead__search-wrap {
		max-width: min(920px, 70%);
	}
}

.ufarm-shop-product-search {
	margin: 0;
	display: block;
	width: 100%;
}

.ufarm-shop-product-search__control {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 52px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--ufarm-shop-radius-pill);
	box-sizing: border-box;
	overflow: hidden;
	background: #fff;
	box-shadow:
		0 2px 8px rgba(15, 35, 70, 0.07),
		0 8px 28px rgba(15, 35, 70, 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ufarm-shop-product-search__control:focus-within {
	border-color: rgba(0, 98, 210, 0.35);
	box-shadow:
		0 2px 12px rgba(0, 98, 210, 0.12),
		0 12px 36px rgba(0, 70, 160, 0.1);
}

.ufarm-shop-product-search__field-wrap {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 0 12px 0 20px;
	background: #fff;
}

.ufarm-shop-product-search__field {
	flex: 1 1 auto;
	min-width: 0;
	height: 50px;
	margin: 0;
	padding: 0 8px 0 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
	color: #1f2937;
	-webkit-appearance: none;
	appearance: none;
}

.ufarm-shop-product-search__field::-webkit-search-decoration,
.ufarm-shop-product-search__field::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.ufarm-shop-product-search__field::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.ufarm-shop-product-search__field:focus {
	outline: none;
}

.ufarm-shop-product-search__clear {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ufarm-shop-green);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ufarm-shop-product-search__field-wrap.is-filled .ufarm-shop-product-search__clear {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ufarm-shop-product-search__clear:hover {
	background: rgba(0, 98, 210, 0.08);
	color: var(--ufarm-shop-green-hover);
}

.ufarm-shop-product-search__clear:focus-visible {
	outline: 2px solid var(--ufarm-shop-green);
	outline-offset: 1px;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ufarm-shop-product-search__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	width: 58px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: linear-gradient(155deg, #153a7a 0%, #0d4a9e 35%, var(--ufarm-shop-green) 70%, #1a8cff 100%);
	color: #fff;
	cursor: pointer;
	transition: filter 0.18s ease, transform 0.12s ease;
}

.ufarm-shop-product-search__submit:hover {
	filter: brightness(1.06);
}

.ufarm-shop-product-search__submit:active {
	transform: scale(0.98);
	filter: brightness(0.97);
}

.ufarm-shop-product-search__submit:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
	z-index: 1;
}

.ufarm-shop-product-search__submit .ufarm-shop-product-search__icon {
	display: block;
	color: #fff;
	font-size: 18px;
	line-height: 1;
}

/* Mobile: ruaj flex-in e brendshëm nëse ka rregulla globale që prekin klasa me "center" */
@media (max-width: 768px) {
	.ufarm-shop-product-search__control {
		display: flex !important;
		justify-content: flex-start !important;
		align-items: stretch !important;
	}
}

.ufarm-shop-masthead__breadcrumbs {
	margin: 0 0 28px;
	text-align: left;
}

.ufarm-shop-masthead .ufarm-shop-breadcrumb,
.ufarm-shop-masthead .woocommerce-breadcrumb.ufarm-shop-breadcrumb {
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--ufarm-shop-green);
}

.ufarm-shop-masthead .ufarm-shop-breadcrumb a,
.ufarm-shop-masthead .woocommerce-breadcrumb.ufarm-shop-breadcrumb a {
	color: var(--ufarm-shop-breadcrumb-link);
	text-decoration: none;
	transition: color 0.15s ease;
}

.ufarm-shop-masthead .ufarm-shop-breadcrumb a:hover,
.ufarm-shop-masthead .woocommerce-breadcrumb.ufarm-shop-breadcrumb a:hover {
	color: #999999;
}

.ufarm-shop-masthead .ufarm-shop-breadcrumb__sep {
	color: var(--ufarm-shop-breadcrumb-sep);
	font-weight: 400;
}

.ufarm-shop-masthead__center {
	max-width: 820px;
	margin: 0 auto 36px;
	padding: 0 8px;
	text-align: center;
}

.ufarm-shop-masthead__title {
	margin: 0 0 18px;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--ufarm-shop-text);
}

.ufarm-shop-masthead__description {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--ufarm-shop-muted);
}

.ufarm-shop-masthead__description > p:first-child {
	margin-top: 0;
}

.ufarm-shop-masthead__description > p:last-child {
	margin-bottom: 0;
}

.ufarm-shop-masthead__description a {
	color: var(--ufarm-shop-green);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	font-weight: 500;
}

.ufarm-shop-masthead__description a:hover {
	color: var(--ufarm-shop-green-hover);
}

.ufarm-shop-masthead__divider {
	display: block;
	width: 100%;
	height: 1px;
	margin: 0;
	border: 0;
	background: #eeeeee;
}

/* -------------------------------------------------------------------------
   Main layout
   ------------------------------------------------------------------------- */
.ufarm-shop-section.shop-main {
	padding: 0px 0 56px;
}

/* Layout: Bootstrap row + col-md-3 (filters) / col-md-9 (products) in archive-product.php */
.ufarm-shop-layout {
	max-width: 100%;
}

.ufarm-shop-sidebar-col {
	position: relative;
}

@media (min-width: 768px) {
	.ufarm-shop-sidebar-col {
		position: static;
	}
}

.ufarm-shop-sidebar {
	width: 100%;
	max-width: 100%;
	position: sticky;
	top: 100px;
	align-self: flex-start;
}

.ufarm-shop-content-col {
	position: relative;
	min-width: 0;
}

.ufarm-shop-content {
	position: relative;
	width: 100%;
	min-width: 0;
}

/* -------------------------------------------------------------------------
   Sidebar filters
   ------------------------------------------------------------------------- */
.ufarm-filters {
	background: #fff;
	border: 1px solid var(--ufarm-shop-border);
	border-radius: var(--ufarm-shop-radius-lg);
	padding: 0;
	overflow: hidden;
}

/* Header: titull + “Clear filters” në një rresht */
.ufarm-filters__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: nowrap;
	padding: 18px 20px 14px;
	margin: 0;
	border-bottom: 1px solid var(--ufarm-shop-border);
}

.ufarm-filters__title {
	margin: 0;
	padding: 0;
	font-size: 1.25rem!important;
	font-weight: 700;
	color: var(--ufarm-shop-text);
	letter-spacing: -0.02em;
	line-height: 1.2;
	flex: 1 1 auto;
	min-width: 0;
}

.ufarm-filters__clear {
	flex-shrink: 0;
	background: none;
	border: 0;
	padding: 0;
	font-size: 0.8125rem!important;
	font-weight: 400;
	color:#0062d2;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-align: right;
	    margin-left: 10px;
}

.ufarm-filters__clear:hover {
	color: #0062d2;
}

.ufarm-filters-form {
	padding-bottom: 4px;
}

.ufarm-filter-section {
	border-top: 1px solid var(--ufarm-shop-border);
}

.ufarm-filter-section--first {
	border-top: none;
}

.ufarm-filter-section__head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	padding: 16px 20px 12px!important;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--ufarm-shop-text);
}

.ufarm-filter-section__title {
	font-weight: 500;
}

.ufarm-filter-section__head:hover .ufarm-filter-section__title {
}

.ufarm-filter-section__chevron {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--ufarm-shop-green);
	border-bottom: 2px solid var(--ufarm-shop-green);
	transform: rotate(45deg);
	margin-top: -4px;
	transition: transform 0.25s ease;
}

/* Open = chevron points up (collapse) */
.ufarm-filter-section.is-open .ufarm-filter-section__chevron {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.ufarm-filter-section__body {
	display: none;
	padding: 0 20px 18px;
}

.ufarm-filter-section.is-open .ufarm-filter-section__body {
	display: block;
}

.ufarm-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ufarm-filter-list--price .ufarm-filter-row {
	margin-bottom: 14px;
}

/* Product Type list: reference-style scrollbar (track + thumb; WebKit arrow buttons) */
.ufarm-filter-list--scroll {
	max-height: 280px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 8px;
	margin-right: 2px;
	scrollbar-width: auto;
	scrollbar-color: #9a9a9a #ececec;
}

.ufarm-filter-list--scroll::-webkit-scrollbar {
	width: 14px;
}

.ufarm-filter-list--scroll::-webkit-scrollbar-track {
	background: #ececec;
	border-left: 1px solid #ddd;
	border-radius: 0;
}

.ufarm-filter-list--scroll::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #b3b3b3 0%, #8a8a8a 100%);
	border-radius: 6px;
	border: 3px solid #ececec;
	min-height: 40px;
}

.ufarm-filter-list--scroll::-webkit-scrollbar-button:single-button:vertical:decrement,
.ufarm-filter-list--scroll::-webkit-scrollbar-button:single-button:vertical:increment {
	display: block;
	height: 12px;
	background: #e4e4e4;
	border-left: 1px solid #d0d0d0;
	background-repeat: no-repeat;
	background-position: center 4px;
	background-size: 8px 5px;
}

.ufarm-filter-list--scroll::-webkit-scrollbar-button:single-button:vertical:decrement {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23555' d='M4 0 8 5H0z'/%3E%3C/svg%3E");
}

.ufarm-filter-list--scroll::-webkit-scrollbar-button:single-button:vertical:increment {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23555' d='M4 5 0 0h8z'/%3E%3C/svg%3E");
}

.ufarm-filter-row {
	margin-bottom: 10px;
	line-height: 1.5;
}

.ufarm-filter-row:last-child {
	margin-bottom: 0;
}

.ufarm-filter-row__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--ufarm-shop-text);
	font-weight: 400;
}

/* Square checkbox, thin gray border (reference) */
.ufarm-filter-check {
	appearance: none;
	-webkit-appearance: none;
	width: 15px;
	height: 15px;
	min-width: 15px;
	margin: 3px 0 0;
	border: 1px solid #bdbdbd;
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ufarm-filter-check:hover {
	border-color: #9e9e9e;
}

.ufarm-filter-check:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 102, 51, 0.2);
}

.ufarm-filter-check:checked {
	background-color: var(--ufarm-shop-green);
	border-color: var(--ufarm-shop-green);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center 3px;
	background-size: 10px 8px;
}

.ufarm-filter-row__text {
	flex: 1;
	color: var(--ufarm-shop-text);
}

.ufarm-filter-row__count {
	color: var(--ufarm-shop-muted);
	font-weight: 400;
}

.ufarm-filter-row--link .ufarm-filter-row__link {
	display: block;
	color: var(--ufarm-shop-text);
	text-decoration: none;
	padding: 3px 0;
	font-size: 0.875rem!important;
	font-weight: 400;
	line-height: 1.45;
}

.ufarm-filter-row--link .ufarm-filter-row__link:hover {
}

.ufarm-filter-row--link .ufarm-filter-row__count {
	color: var(--ufarm-shop-muted);
}

/* -------------------------------------------------------------------------
   Toolbar (numër produktesh majtas | Sort + dropdown i bardhë me kufi — ref. foto 2)
   ------------------------------------------------------------------------- */
.ufarm-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 16px 20px;
	margin-bottom: 24px;
	padding-top: 8px;
	width: 100%;
}

.ufarm-shop-toolbar__count {
	flex: 1 1 auto;
	min-width: 0;
}

.ufarm-shop-toolbar__count .woocommerce-result-count {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: #444444;
	line-height: 1.45;
}

.ufarm-shop-toolbar__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.ufarm-shop-toolbar__sort-label {
	font-size: 14px;
	font-weight: 400;
	color: #444444;
	white-space: nowrap;
	line-height: 1.2;
}

.ufarm-shop-toolbar .woocommerce-ordering {
	margin: 0;
	position: relative;
}



.ufarm-shop-toolbar .woocommerce-ordering select.orderby:hover,
.ufarm-shop-toolbar .woocommerce-ordering select.orderby:focus {
	border-color: #b8b8b8;
	outline: none;
	box-shadow: none;
}


/* -------------------------------------------------------------------------
   Product grid (WooCommerce ul.products)
   ------------------------------------------------------------------------- */
.ufarm-shop-content ul.products.ufarm-shop-loop {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	width: 100%;
}
.ufarm-shop-shell {
padding-right:17px;
}
.ufarm-shop-content-col {
padding:0px;
}
.ufarm-shop-sidebar-col {
padding-left:0px;
}

.ufarm-shop-content ul.products.ufarm-shop-loop::before,
.ufarm-shop-content ul.products.ufarm-shop-loop::after {
	display: none;
}

.ufarm-shop-content ul.products.ufarm-shop-loop li.product {
	display: flex;
	flex-direction: column;
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

/* -------------------------------------------------------------------------
   Product card — reference (magenta #D80073, blue #009EE3, green #26813E, ~10px radius)
   ------------------------------------------------------------------------- */
.ufarm-pcard {
	--pcard-pink: #d80073;
	--pcard-green: #26813e;
	--pcard-green-hover: #1f6b33;
	--pcard-black: #000000;
	--pcard-gray-was: #767676;
	--pcard-title-link: #0056b3;
	--pcard-title-link-hover: #004494;
	--pcard-border: #e0e0e0;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
	/* Lartësi minimale + rritje automatike: pa scroll të brendshëm në kartë (feedback pika 24);
	   grid-i i shtrin kartat e të njëjtit rresht njësoj, kështu mbeten të njëtrajtësuara (pika 12). */
	height: auto;
	min-height: 480px;
	background: #fff;
	border: 1px solid var(--pcard-border);
	border-radius: 10px;
	padding: 0px;
	overflow: visible;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ufarm-pcard:hover {
	border-color: #d0d0d0;
	box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.15);
	color: rgb(26, 26, 26);
	text-decoration: none;
}

.ufarm-pcard__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 100%;
	min-height: 220px;
	height: 220px;
	margin: 0 0 0;
}

.ufarm-pcard__media-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.ufarm-pcard__media-link img {
	max-width: 88%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Force shop thumbnails to fixed width and centered */
img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail{
	width: 220px;
	max-width: 220px;
	margin: auto;
	padding: 0;
	display: block;
}

.ufarm-pcard__badge {
	position: absolute;
	/* Ngjitur në qoshen e kartës: nuk pritet nga overflow dhe nuk bie mbi tekst (feedback pika 11). */
	top: -4px;
	right: 0;
	background: var(--pcard-pink);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: capitalize;
	padding: 8px 12px 8px 14px;
	border-radius: 0 10px 0 10px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	z-index: 2;
}

/* Wishlist + cart: visible on hover (desktop); always on touch */
.ufarm-pcard__media:has(.ufarm-pcard__badge) .ufarm-pcard__hover-actions {
	top: 44px;
}

.ufarm-pcard__hover-actions {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 4;
	opacity: 0;
	visibility: hidden;
	transform: translateX(6px);
	transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.ufarm-pcard:hover .ufarm-pcard__hover-actions {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
		pointer-events: auto;
	}
}

@media (hover: none), (pointer: coarse) {
	.ufarm-pcard__hover-actions {
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
		flex-direction: row;
		top: auto;
		bottom: 36px;
		right: 6px;
	}
}

.ufarm-pcard__icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-width: 38px;
	min-height: 38px;
	max-width: 38px;
	max-height: 38px;
	border-radius: 50%;
	border: none;
	padding: 0;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	color: var(--ufarm-shop-text);
	cursor: pointer;
	text-decoration: none;
	flex-shrink: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ufarm-pcard__icon-btn:hover {
	color: var(--pcard-green);
	background: #fff;
	transform: scale(1.06);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.ufarm-pcard__icon-btn--wish.active,
.ufarm-pcard__icon-btn--wish.active i {
	color: var(--pcard-pink);
}

.ufarm-pcard__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	text-align: left;
	min-height: 0;
	padding-top: 0;
}

.ufarm-pcard__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.28;
	color: var(--pcard-title-link);
	padding-left: 15px;
	padding-right: 15px;
    min-height: calc(1em * 1.4);
    max-height: calc(1em * 1.6);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	text-align: left;
}

.ufarm-pcard__title a {
	color: var(--pcard-title-link);
	text-decoration: none;
	color: #1a1a1a;
    font-size: .9375rem !important;
    line-height: 1.3;
	font-weight: 400;
	list-style-image: none;
	list-style-position: outside;
	list-style-type: none;
	overflow-x: hidden;
	overflow-y: hidden;
	text-decoration-color: transparent;
	display: flex;
}

.ufarm-pcard__title a:hover,
.ufarm-pcard__title a:focus-visible {
	color: #1a1a1a;
	text-decoration: none;
}

/* Hapësirë fikse për promo (edhe kur mungon) — një rresht ose dy, max 48px */
.ufarm-pcard__promo-slot {
	flex-shrink: 0;
	height: 48px;
	margin: 0 0 10px;
	padding-left: 15px;
	padding-right: 15px;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
}

.ufarm-pcard__promo {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 7px 10px;
	background: var(--pcard-pink);
	color: #fff;
	font-size: 13px;
	font-weight: 700!important;
	line-height: 1.3;
	border-radius: 4px;
	text-align: left;
	max-height: 100%;
}

.ufarm-pcard__price-box {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 76px;
	margin-bottom: 4px;
	padding-left: 15px;
	padding-right: 15px;
}

.ufarm-pcard__price {
	margin-bottom: 10px;
	font-size: 19px;
	font-weight: 700;
	color: var(--pcard-black);
}

.ufarm-pcard__price del {
	font-weight: 400;
	color: var(--pcard-gray-was);
	font-size: 16px;
	margin-right: 6px;
}

.ufarm-pcard__price ins {
	text-decoration: none;
}

/* Dual stack + single-line current / was (reference) */
.ufarm-pcard__price-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 0;
	flex: 0 1 auto;
	min-height: 0;
}

.ufarm-pcard__price-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	line-height: 1.35;
}

.ufarm-pcard__price-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pcard-gray-was);
}

.ufarm-pcard__price-row--business .ufarm-pcard__price-label {
	color: var(--pcard-green);
}

.ufarm-pcard__price-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-start;
	gap: 4px 10px;
	width: 100%;
}

.ufarm-pcard__price-current {
	font-size: 19px;
	font-weight: 700;
	color: var(--pcard-black);
	line-height: 1.2;
}

.ufarm-pcard__price-current .woocommerce-Price-amount {
	font-weight: 700;
	font-size: inherit;
}

.ufarm-pcard__price-stack--single {
	gap: 0;
	margin-bottom: 0;
}

.ufarm-pcard__price-row--single {
	gap: 0;
}

.ufarm-pcard__was-slot {
	flex: 0 1 auto;
	margin-left: 0;
	text-align: left;
}

.ufarm-pcard__was-slot--labeled {
	white-space: nowrap;
}

.ufarm-pcard__was-prefix {
	font-size: 13px;
	font-weight: 400;
	color: var(--pcard-gray-was);
}

/* Referencë: “Was” + çmim gri, pa strikethrough */
.ufarm-pcard__price-was {
	font-size: 14px;
	font-weight: 400;
	color: var(--pcard-gray-was);
	text-decoration: none;
}

.ufarm-pcard__price-was .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: 400;
	color: inherit;
}

.ufarm-pcard__price-tier-note {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	color: var(--pcard-gray-was);
	line-height: 1.45;
	max-width: 100%;
}

/* WooCommerce default price HTML inside card */
.ufarm-pcard__price-stack--wc-fallback {
	margin-bottom: 0;
}

.ufarm-pcard__price-line--wc {
	font-size: 19px;
	font-weight: 700;
	color: var(--pcard-black);
}

.ufarm-pcard__price-line--wc .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-start;
	gap: 4px 10px;
	width: 100%;
	margin: 0;
}

.ufarm-pcard__price-line--wc ins {
	text-decoration: none;
	font-weight: 700;
	color: var(--pcard-black);
}

.ufarm-pcard__price-line--wc del {
	font-size: 14px;
	font-weight: 400;
	color: var(--pcard-gray-was);
	text-decoration: line-through;
	order: 2;
	margin-left: 0;
}

.ufarm-pcard__price-line--wc ins {
	order: 1;
}

.ufarm-pcard__save {
	display: inline-block;
	margin-bottom: 0;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--pcard-pink);
	padding: 5px 10px;
	border-radius: 4px;
	line-height: 1.25;
}

.ufarm-pcard__save--inline {
	display: inline-block;
	align-self: flex-start;
	margin-top: 8px;
	margin-bottom: 0;
	border-radius: 4px;
}

.ufarm-pcard__save--inline .woocommerce-Price-amount {
	color: #fff;
	font-weight: 700;
	font-size: inherit;
}

.ufarm-pcard__cta {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: calc(100% - 30px);
	box-sizing: border-box;
	margin-left: 15px;
	margin-right: 15px;
	margin-top: auto;
	margin-bottom: 15px;
	flex-shrink: 0;
	letter-spacing: 0.02em !important;
	padding: 0.5rem 2rem !important;
	background: linear-gradient(to top, #0062d2, #203383) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-size: 16px !important;
	font-weight: 700;
	transition: none !important;
	text-decoration: none !important;
	border: none;
}

.ufarm-pcard__cta:hover {
	background: linear-gradient(135deg, #063e7f 0%, #022d5f 100%) !important;
	transform: translateY(0px);
	color: #fff !important;
}
.ufarm-shop-toolbar .woocommerce-ordering select.orderby {
	background: #fff!important;
    border: 1px solid #595959!important;
    border-radius: 10px!important;
    color: #1a1a1a!important;
    font-size: 1.125rem;
    font-weight: 600;
    height: 50px;
    padding: 1px 21px;
    transition-duration: .1s;
    transition-property: background-color, color, border-color, opacity;
    transition-timing-function: ease-out;
}

/* -------------------------------------------------------------------------
   Njoftimet në faqen e produktit ("u shtua në shportën tuaj", gabime etj.)
   Printohen brenda .single-prod (jo në krye të faqes nën header-in fiks).
   Specificiteti i lartë mbishkruan stilet globale me !important nga site.css.
   ------------------------------------------------------------------------- */
.ufarm-single-product-page .ufarm-single-notices {
	margin: 0 0 6px;
}

.ufarm-single-product-page .ufarm-single-notices .woocommerce-message-wrapper {
	margin: 0 0 12px !important;
	overflow: visible;
	z-index: 1;
}

.ufarm-single-product-page .ufarm-single-notices .woocommerce-message-wrapper .container {
	max-width: none !important;
	padding: 0 !important;
}

.ufarm-single-product-page .ufarm-single-notices .woocommerce-message-wrapper .woocommerce-message,
.ufarm-single-product-page .ufarm-single-notices .woocommerce-message-wrapper .woocommerce-info {
	background: #f2faf5 !important;
	border: 1px solid #bfe6cd !important;
	border-left: 4px solid #1e9e5a !important;
	border-radius: 12px !important;
	color: #14532d !important;
	padding: 12px 16px !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06) !important;
}

.ufarm-single-product-page .ufarm-single-notices .woocommerce-message-wrapper .woocommerce-message a,
.ufarm-single-product-page .ufarm-single-notices .woocommerce-message-wrapper .woocommerce-info a {
	margin: 0 !important;
	flex-shrink: 0;
}

.ufarm-single-product-page .ufarm-single-notices .woocommerce-error {
	list-style: none !important;
	margin: 0 0 12px !important;
	padding: 12px 16px !important;
	background: #fdf3f3 !important;
	border: 1px solid #f2c6c6 !important;
	border-left: 4px solid #d64545 !important;
	border-radius: 12px !important;
	color: #7f1d1d !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
}

.ufarm-single-product-page .ufarm-single-notices .woocommerce-error li {
	margin: 0 !important;
	list-style: none !important;
}

/* -------------------------------------------------------------------------
   Archive header / notices / pagination
   ------------------------------------------------------------------------- */
.ufarm-shop-content .woocommerce-products-header {
	margin-bottom: 20px;
	border: 0;
	padding: 0;
}

.ufarm-shop-content .woocommerce-products-header__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 8px;
}

.ufarm-shop-content .woocommerce-info,
.ufarm-shop-content .woocommerce-message,
.ufarm-shop-content .woocommerce-error {
	margin-bottom: 16px;
}

/* Paginim dyqani — si foto 2: numra si tekst + faqe aktive “squircle”; ngjyra #0063d3 */
.ufarm-shop-pagination {
	margin-top: 24px;
	display: flex;
	justify-content: center;
	width: 100%;
}

.ufarm-shop-pagination .woocommerce-pagination {
	display: block;
	text-align: center;
	margin: 0 !important;
	padding: 0 !important;
}

.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers {
	display: inline-flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 18px;
	list-style: none !important;
	margin: 0 auto !important;
	padding: 16px 8px !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0;
	box-shadow: none !important;
}

.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: inline-flex;
	align-items: center;
}

/* Bazë: pa sfond të plotë për të gjitha */
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers a.page-numbers,
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers span.page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	border: none !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
	box-sizing: border-box;
	box-shadow: none !important;
	transform: none !important;
}

/* Numra joaktivë: vetëm tekst blu (pa kuti) */
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers a.page-numbers:not(.prev):not(.next) {
	min-width: auto;
	min-height: auto;
	padding: 8px 6px !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #0063d3 !important;
}

.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers a.page-numbers:not(.prev):not(.next):hover {
	background: transparent !important;
	color: #004a9e !important;
	opacity: 1;
}

/* Shigjetat si link: i njëjti blu */
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers a.page-numbers.prev,
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers a.page-numbers.next {
	min-width: 40px;
	min-height: 40px;
	padding: 8px 10px !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #0063d3 !important;
}

.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers a.page-numbers.prev:hover,
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers a.page-numbers.next:hover {
	color: #004a9e !important;
	background: transparent !important;
}

/* Faqja aktive: katror i rrumbullakosur (squircle), #0063d3 */
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers span.page-numbers.current {
	min-width: 44px;
	min-height: 44px;
	padding: 8px 12px !important;
	border-radius: 10px !important;
	background: #0063d3 !important;
	color: #fff !important;
	cursor: default;
}

/* Pika … */
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers span.page-numbers.dots {
	background: transparent !important;
	color: #64748b !important;
	min-width: auto !important;
	padding: 8px 4px !important;
}

/* Prev/next të çaktivizuar: tekst i zbehur */
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers span.page-numbers.prev,
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers span.page-numbers.next,
.ufarm-shop-pagination .woocommerce-pagination ul.page-numbers span.page-numbers.disabled {
	background: transparent !important;
	color: rgba(0, 99, 211, 0.35) !important;
	min-width: 40px;
	min-height: 40px;
	padding: 8px 10px !important;
}

/* -------------------------------------------------------------------------
   Mobile sidebar
   ------------------------------------------------------------------------- */
.ufarm-shop-sidebar-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	background: var(--ufarm-shop-green);
	border: none;
	border-radius: var(--ufarm-shop-radius-pill);
	cursor: pointer;
	margin-bottom: 16px;
}

.ufarm-shop-sidebar-toggle:hover {
	background: var(--ufarm-shop-green-hover);
}

.ufarm-shop-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 100050;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.ufarm-shop-overlay.is-visible {
	display: block;
	opacity: 1;
	pointer-events: auto;
}

.ufarm-shop-sidebar__close {
	display: none;
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: #f3f3f3;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	z-index: 2;
}

/* -------------------------------------------------------------------------
   No products
   ------------------------------------------------------------------------- */
.ufarm-shop-no-products {
	text-align: center;
	padding: 48px 20px;
	color: var(--ufarm-shop-muted);
}

.ufarm-shop-no-products .button {
	margin-top: 16px;
	border-radius: var(--ufarm-shop-radius-pill);
	background: var(--ufarm-shop-green);
	color: #fff;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1199px) {
	.ufarm-shop-content ul.products.ufarm-shop-loop {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 991px) {
	.ufarm-shop-sidebar-toggle {
		display: inline-flex;
	}

	/* Sidebar-i është off-canvas (position: fixed), prandaj kolona e tij nuk duhet
	   të zërë vend në layout — ndryshe mbetet shirit bosh anash (feedback pika 54). */
	.ufarm-shop-sidebar-col {
		flex: 0 0 auto;
		width: 0;
		max-width: 0;
		padding: 0 !important;
		margin: 0;
		min-height: 0;
	}

	.ufarm-shop-content-col {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	/* Toolbar-i (numri i produkteve + Sort) të thyhet pa u ngjeshur në tablet. */
	.ufarm-shop-toolbar {
		flex-wrap: wrap;
	}

	.ufarm-shop-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: min(360px, 88vw);
		max-width: 360px;
		z-index: 100060;
		transform: translateX(-102%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		background: #fff;
		padding: 52px 0 24px;
		box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
		border: none;
		border-radius: 0;
	}

	.ufarm-shop-sidebar.is-open {
		transform: translateX(0);
	}

	.ufarm-shop-sidebar__close {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.ufarm-shop-sidebar .ufarm-filters {
		border: none;
		border-radius: 0;
	}

	.ufarm-shop-content ul.products.ufarm-shop-loop {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.ufarm-shop-masthead {
		padding-top: 20px;
	}

	.ufarm-shop-masthead__breadcrumbs {
		margin-bottom: 20px;
	}

	.ufarm-shop-masthead__center {
		margin-bottom: 28px;
	}

	.ufarm-shop-masthead__title {
		font-size: 1.65rem;
	}

	.ufarm-shop-masthead__description {
		font-size: 14px;
	}

	.ufarm-shop-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.ufarm-shop-toolbar__sort {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	.ufarm-shop-toolbar .woocommerce-ordering select.orderby {
		width: 100%;
	}

	.ufarm-shop-content ul.products.ufarm-shop-loop {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ufarm-pcard {
		height: auto;
		min-height: 520px;
		padding: 15px;
	}

	.ufarm-pcard__media {
		min-height: 220px;
		height: 220px;
	}

	.ufarm-pcard__price-current,
	.ufarm-pcard__price-line--wc {
		font-size: 18px;
	}
}

/* Shop archive: pesha e fontit 500 kudo (sipas kërkesës) */
body.woocommerce-shop .ufarm-shop-section .ufarm-shop-shell,
body.woocommerce-shop .ufarm-shop-section .ufarm-shop-shell *,
body.woocommerce.post-type-archive-product .ufarm-shop-section .ufarm-shop-shell,
body.woocommerce.post-type-archive-product .ufarm-shop-section .ufarm-shop-shell *,
body.woocommerce.tax-product_cat .ufarm-shop-section .ufarm-shop-shell,
body.woocommerce.tax-product_cat .ufarm-shop-section .ufarm-shop-shell *,
body.woocommerce-shop .ufarm-shop-masthead,
body.woocommerce-shop .ufarm-shop-masthead *,
body.woocommerce.post-type-archive-product .ufarm-shop-masthead,
body.woocommerce.post-type-archive-product .ufarm-shop-masthead *,
body.woocommerce.tax-product_cat .ufarm-shop-masthead,
body.woocommerce.tax-product_cat .ufarm-shop-masthead *,
body.woocommerce-shop .ufarm-shop-page-hero,
body.woocommerce-shop .ufarm-shop-page-hero *,
body.woocommerce.post-type-archive-product .ufarm-shop-page-hero,
body.woocommerce.post-type-archive-product .ufarm-shop-page-hero *,
body.woocommerce.tax-product_cat .ufarm-shop-page-hero,
body.woocommerce.tax-product_cat .ufarm-shop-page-hero * {
	font-weight: 500;
}

body.woocommerce-shop .ufarm-shop-page-hero .page-hero-title,
body.woocommerce.post-type-archive-product .ufarm-shop-page-hero .page-hero-title,
body.woocommerce.tax-product_cat .ufarm-shop-page-hero .page-hero-title {
	font-weight: 500;
}

/* Ikonat hover: të njëjta (mbishkruan assets/css/wishlist.css për .ufram-wishlist-btn) */
.ufarm-pcard .ufarm-pcard__hover-actions .ufarm-pcard__icon-btn.ufram-wishlist-btn {
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.ufarm-pcard .ufarm-pcard__hover-actions .ufarm-pcard__icon-btn.ufram-wishlist-btn:hover {
	transform: scale(1.06);
	border: none !important;
}

.ufarm-pcard__icon-btn i {
	font-size: 16px;
	line-height: 1;
	width: 1em;
	height: 1em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
