/* Product Category Loop Item - frontend styles
   Base layout + 5 card skins. Colors/fonts/spacing are driven by Elementor
   Style controls (inline CSS); this file only owns structural/layout rules. */

.pcli-wrapper {
	width: 100%;
}

.pcli-category-block {
	width: 100%;
}

.pcli-category-title-block {
	width: 100%;
}

.pcli-category-title-row {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.pcli-category-title-wrap {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
}

.pcli-category-title {
	margin: 0;
	width: 100%;
}

.pcli-category-title-underline {
	width: 100%;
	display: block;
}

.pcli-view-more {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	white-space: nowrap;
}

.pcli-view-more-block {
	display: flex;
	width: 100%;
	margin-top: 24px;
}

.pcli-view-more-block .pcli-view-more-btn {
	border: 1px solid currentColor;
	border-radius: 30px;
	padding: 12px 28px;
}

.pcli-products-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 20px;
	row-gap: 20px;
}

.pcli-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	gap: 12px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pcli-product-image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.pcli-product-image-link {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.pcli-product-img {
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: 100%;
	display: block;
	transition: transform 0.35s ease;
}

.pcli-badge {
	position: absolute;
	z-index: 3;
	line-height: 1;
	font-weight: 600;
	white-space: nowrap;
}
.pcli-badge-top-left { top: 8px; left: 8px; }
.pcli-badge-top-right { top: 8px; right: 8px; }
.pcli-badge-bottom-left { bottom: 8px; left: 8px; }
.pcli-badge-bottom-right { bottom: 8px; right: 8px; }

.pcli-out-of-stock-label {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 4px;
}

.pcli-out-of-stock .pcli-product-img {
	opacity: 0.55;
}

.pcli-action-icons {
	display: flex;
	z-index: 4;
}

.pcli-icons-overlay .pcli-action-icons {
	position: absolute;
	top: 8px;
	right: 8px;
	opacity: 0;
	transform: translateX(10px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Touch devices have no real hover: don't hide the icons behind an
   interaction the user can never trigger. */
@media (hover: none) {
	.pcli-icons-overlay .pcli-action-icons {
		opacity: 1;
		transform: translate(0, 0) !important;
	}
}

.pcli-icons-dir-vertical .pcli-action-icons {
	flex-direction: column;
}

.pcli-icons-dir-horizontal .pcli-action-icons {
	flex-direction: row;
}

.pcli-icons-overlay.pcli-icons-pos-top-left .pcli-action-icons {
	top: 8px;
	left: 8px;
	right: auto;
	bottom: auto;
	transform: translateX(-10px);
}

.pcli-icons-overlay.pcli-icons-pos-top-right .pcli-action-icons {
	top: 8px;
	right: 8px;
	left: auto;
	bottom: auto;
	transform: translateX(10px);
}

.pcli-icons-overlay.pcli-icons-pos-bottom-left .pcli-action-icons {
	bottom: 8px;
	left: 8px;
	right: auto;
	top: auto;
	transform: translateX(-10px);
}

.pcli-icons-overlay.pcli-icons-pos-bottom-right .pcli-action-icons {
	bottom: 8px;
	right: 8px;
	left: auto;
	top: auto;
	transform: translateX(10px);
}

.pcli-icons-overlay .pcli-product-card:hover .pcli-action-icons,
.pcli-icons-overlay .pcli-product-card:focus-within .pcli-action-icons {
	opacity: 1;
	transform: translate(0, 0);
	pointer-events: auto;
}

.pcli-icons-below .pcli-action-icons {
	position: static;
	justify-content: center;
	margin: 10px 0 0;
}

.pcli-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	background: none;
	transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.pcli-icon-btn i,
.pcli-icon-btn svg {
	color: inherit;
	fill: currentColor;
	line-height: 1;
	flex: none;
}

.pcli-icon-btn:hover,
.pcli-icon-btn:hover i,
.pcli-icon-btn:hover svg {
	color: inherit;
}

.pcli-icon-btn:hover {
	transform: translateY(-2px);
}

/* Tooltip: appears beside the icon (not above/below) so it isn't clipped by
   the image wrap's overflow:hidden. */
.pcli-icon-btn[data-tooltip] {
	position: relative;
}
.pcli-icon-btn[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	top: 50%;
	right: calc(100% + 8px);
	transform: translateY(-50%) translateX(4px);
	background: rgba(30, 30, 30, 0.92);
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 400;
	padding: 4px 9px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, transform 0.15s ease;
	pointer-events: none;
	z-index: 20;
}
.pcli-icon-btn[data-tooltip]:hover::after,
.pcli-icon-btn[data-tooltip]:focus-visible::after {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}
.pcli-icons-below .pcli-icon-btn[data-tooltip]::after {
	top: auto;
	bottom: calc(100% + 8px);
	right: 50%;
	left: auto;
	transform: translateX(50%) translateY(4px);
}
.pcli-icons-below .pcli-icon-btn[data-tooltip]:hover::after {
	transform: translateX(50%) translateY(0);
}
@media (hover: none) {
	.pcli-icon-btn[data-tooltip]::after {
		display: none;
	}
}

/* Woodmart integration: real theme wishlist/compare/quick-view buttons are
   rendered for data/AJAX correctness but stay invisible — the PCLI icon is
   what's shown, JS forwards clicks to these. */
.pcli-woodmart-proxy {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.pcli-product-info {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.pcli-product-brand {
	line-height: 1.2;
}

.pcli-product-title {
	margin: 0 0 8px;
	line-height: 1.4;
}

.pcli-product-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.pcli-product-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.pcli-price-old {
	text-decoration: line-through;
}

.pcli-add-to-cart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	border: none;
	margin-top: auto;
	box-sizing: border-box;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.pcli-add-to-cart-btn.pcli-loading {
	opacity: 0.6;
	pointer-events: none;
}

.pcli-btn-disabled {
	background: #ececec;
	color: #999;
	cursor: not-allowed;
	pointer-events: none;
}

/* ===================== SKIN: CLASSIC ===================== */
.pcli-skin-classic .pcli-product-brand {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
}

/* ===================== SKIN: MINIMAL ===================== */
.pcli-skin-minimal .pcli-product-image-wrap {
	background: transparent;
	border: none;
}
.pcli-skin-minimal .pcli-product-card {
	box-shadow: none;
}
.pcli-skin-minimal .pcli-add-to-cart-btn {
	background: transparent;
	justify-content: flex-start;
	padding-left: 0;
	width: auto;
}
.pcli-skin-minimal .pcli-add-to-cart-btn:hover {
	text-decoration: underline;
	background: transparent;
}
.pcli-skin-minimal .pcli-badge {
	border-radius: 0;
}

/* ===================== SKIN: OVERLAY ===================== */
.pcli-skin-overlay .pcli-product-image-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 2;
}
.pcli-skin-overlay .pcli-product-card:hover .pcli-product-image-wrap::after {
	opacity: 1;
}
.pcli-skin-overlay.pcli-icons-overlay .pcli-action-icons {
	top: 50%;
	right: 10px;
	transform: translate(10px, -50%);
}
.pcli-skin-overlay.pcli-icons-overlay .pcli-product-card:hover .pcli-action-icons {
	transform: translate(0, -50%);
}
.pcli-skin-overlay .pcli-add-to-cart-btn {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.pcli-skin-overlay .pcli-product-card:hover .pcli-add-to-cart-btn,
.pcli-skin-overlay .pcli-product-card:focus-within .pcli-add-to-cart-btn {
	opacity: 1;
	transform: translateY(0);
}

/* ===================== SKIN: BORDERED ===================== */
.pcli-skin-bordered .pcli-product-card {
	border: 2px solid var(--pcli-bordered-color, #f0e0c0);
}
.pcli-skin-bordered .pcli-badge {
	border-radius: 0;
	clip-path: polygon(0 0, 100% 0, 85% 50%, 100% 100%, 0 100%);
	padding-right: 16px;
}

/* ===================== SKIN: HORIZONTAL ===================== */
.pcli-skin-horizontal .pcli-product-card {
	flex-direction: row;
	align-items: stretch;
}
.pcli-skin-horizontal .pcli-product-image-wrap {
	flex: 0 0 38%;
	max-width: 38%;
	aspect-ratio: auto;
}
.pcli-skin-horizontal .pcli-product-info {
	flex: 1 1 auto;
}
.pcli-skin-horizontal .pcli-add-to-cart-btn {
	width: auto;
	align-self: flex-start;
}
.pcli-skin-horizontal .pcli-products-grid {
	grid-template-columns: 1fr;
}

/* ===================== QUICK VIEW MODAL ===================== */
.pcli-qv-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}
.pcli-qv-overlay.is-open {
	opacity: 1;
	visibility: visible;
}
.pcli-qv-modal {
	background: #fff;
	border-radius: 4px;
	max-width: 900px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	position: relative;
	padding: 50px 40px 40px;
	box-sizing: border-box;
}
#pcli-qv-overlay .pcli-qv-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: #333;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	font-weight: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}
#pcli-qv-overlay .pcli-qv-close:hover {
	background: #f2f2f2;
}
.pcli-qv-layout {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}
.pcli-qv-image {
	flex: 1 1 300px;
	max-width: 360px;
	background: #f7f7f7;
	border-radius: 4px;
	padding: 20px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pcli-qv-image img {
	width: 100%;
	height: auto;
	display: block;
}
.pcli-qv-summary {
	flex: 1 1 320px;
	min-width: 0;
}
.pcli-qv-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}
.pcli-qv-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}
.pcli-qv-rating .star-rating {
	font-size: 14px;
}
.pcli-qv-rating-count {
	font-size: 13px;
	color: #767676;
}
.pcli-qv-price {
	margin-bottom: 16px;
	font-size: 22px;
	font-weight: 600;
	color: #e0a83c;
}
.pcli-qv-desc {
	margin-bottom: 22px;
	color: #555;
	line-height: 1.6;
}
.pcli-qv-desc p:last-child {
	margin-bottom: 0;
}
.pcli-qv-cart-row {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-bottom: 24px;
}
.pcli-qv-cart-row .pcli-add-to-cart-btn {
	flex: 1 1 auto;
	margin-top: 0;
}
.pcli-qv-qty {
	display: flex;
	align-items: stretch;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	flex: 0 0 auto;
}
.pcli-qv-qty button {
	width: 34px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 16px;
	color: #333;
}
.pcli-qv-qty button:hover {
	background: #f2f2f2;
}
.pcli-qv-qty-input {
	width: 40px;
	border: none;
	border-left: 1px solid #e5e5e5;
	border-right: 1px solid #e5e5e5;
	text-align: center;
	font-size: 14px;
	-moz-appearance: textfield;
}
.pcli-qv-qty-input::-webkit-outer-spin-button,
.pcli-qv-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.pcli-qv-meta {
	border-top: 1px solid #ececec;
	padding-top: 14px;
	font-size: 13px;
	color: #767676;
}
.pcli-qv-meta p {
	margin: 0 0 6px;
}
.pcli-qv-meta p:last-child {
	margin-bottom: 0;
}
.pcli-qv-meta span {
	color: #333;
}
.pcli-qv-meta a {
	color: inherit;
}
.pcli-qv-loading,
.pcli-qv-error {
	padding: 60px 20px;
	text-align: center;
	width: 100%;
}

/* ===================== TOAST ===================== */
.pcli-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #2b2b2b;
	color: #fff;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 14px;
	z-index: 999999;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}
.pcli-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===================== WISHLIST / COMPARE PAGE ===================== */
.pcli-list-page {
	max-width: 900px;
	margin: 0 auto;
}
.pcli-list-page-title {
	margin: 0 0 20px;
}
.pcli-list-empty {
	color: #767676;
}
.pcli-list-table {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pcli-list-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px;
	border: 1px solid #ececec;
	border-radius: 4px;
	box-sizing: border-box;
}
.pcli-list-row-image {
	flex: 0 0 auto;
	width: 70px;
	height: 70px;
	display: block;
}
.pcli-list-row-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.pcli-list-row-info {
	flex: 1 1 auto;
	min-width: 0;
}
.pcli-list-row-title {
	display: block;
	text-decoration: none;
	color: #2b2b2b;
	font-weight: 600;
	margin-bottom: 4px;
}
.pcli-list-row-price {
	color: #e0a83c;
	font-weight: 600;
}
.pcli-list-row-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
}
.pcli-list-row-actions .pcli-add-to-cart-btn {
	margin-top: 0;
	padding: 8px 16px;
	white-space: nowrap;
}
.pcli-list-remove {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: #f2f2f2;
	color: #666;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
}
.pcli-list-remove:hover {
	background: #e5e5e5;
}

@media (max-width: 600px) {
	.pcli-list-row {
		flex-wrap: wrap;
	}
	.pcli-list-row-actions {
		flex: 1 1 100%;
		justify-content: space-between;
	}
}

@media (max-width: 767px) {
	.pcli-skin-horizontal .pcli-product-card {
		flex-direction: column;
	}
	.pcli-skin-horizontal .pcli-product-image-wrap {
		max-width: 100%;
		flex: none;
	}
	.pcli-qv-layout {
		flex-direction: column;
	}
	.pcli-qv-image {
		max-width: 100%;
	}
}
