/* =========================
   DIGITNET WISHLIST & COMPARE
========================= */

:root {
	--dn-commerce-color: #ff3c20;
	--dn-commerce-text-color: #8a94a6;
	--dn-commerce-bg-color: #ffffff;
	--dn-commerce-border-color: #e5e7eb;
	--dn-text: #111827;
	--dn-border: #e5e7eb;
	--dn-bg: #ffffff;
	--dn-muted: #f9fafb;
	--dn-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.products .product {
	position: relative;
}

/* Hover mode */
.products .product .dn-commerce-btn.dn-display-hover {
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .2s ease;
}

.products .product:hover .dn-commerce-btn.dn-display-hover {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* HARD RESET for Electro/Woo button styling */
.products .product button.dn-commerce-btn.dn-style-text {
	all: unset !important;
	display: inline-flex !important;
	align-items: center !important;
	cursor: pointer !important;
	margin: 6px 10px 0 0 !important;
	color: var(--dn-commerce-text-color) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	vertical-align: middle !important;
}

.products .product button.dn-commerce-btn.dn-style-text .dn-commerce-icon {
	color: var(--dn-commerce-color) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	margin-right: 4px !important;
	line-height: 1 !important;
}

.products .product button.dn-commerce-btn.dn-style-text .dn-commerce-label {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}

.products .product button.dn-commerce-btn.dn-style-text:hover,
.products .product button.dn-commerce-btn.dn-style-text.is-active {
	color: var(--dn-commerce-color) !important;
}

/* General button fallback */
.dn-commerce-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px;
	border: 0;
	background: transparent;
	color: var(--dn-commerce-text-color);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
	transition: all .2s ease;
	margin: 6px 8px 0 0;
	padding: 0;
	white-space: nowrap;
	box-shadow: none;
	text-decoration: none;
	width: auto !important;
	max-width: max-content;
	clear: none !important;
	float: none !important;
	vertical-align: middle;
}

.dn-commerce-btn:hover,
.dn-commerce-btn.is-active {
	color: var(--dn-commerce-color);
	background: transparent;
}

.dn-commerce-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: currentColor;
}

.dn-commerce-label {
	display: inline-flex;
	align-items: center;
	color: currentColor;
	white-space: nowrap;
}

/* Button styles */
.dn-style-button {
	border: 1px solid var(--dn-commerce-border-color);
	background: var(--dn-commerce-bg-color);
	color: var(--dn-text);
	border-radius: 10px;
	padding: 8px 14px;
	font-weight: 700;
}

.dn-style-pill {
	border: 1px solid var(--dn-commerce-border-color);
	background: var(--dn-commerce-bg-color);
	color: var(--dn-text);
	border-radius: 999px;
	padding: 8px 16px;
	font-weight: 700;
}

.dn-style-button:hover,
.dn-style-button.is-active,
.dn-style-pill:hover,
.dn-style-pill.is-active {
	background: var(--dn-commerce-color);
	border-color: var(--dn-commerce-color);
	color: #fff;
}

.dn-style-icon {
	width: 34px !important;
	height: 34px !important;
	border-radius: 999px;
	background: var(--dn-commerce-bg-color);
	border: 1px solid var(--dn-commerce-border-color);
	color: var(--dn-commerce-text-color);
	padding: 0 !important;
}

.dn-style-icon:hover,
.dn-style-icon.is-active {
	background: var(--dn-commerce-color);
	border-color: var(--dn-commerce-color);
	color: #fff;
}

/* Auto size */
.dn-size-auto {
	font-size: 12px !important;
	padding: 0 !important;
	gap: 3px !important;
	margin-right: 7px !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	width: auto !important;
	max-width: max-content !important;
}

.dn-size-auto .dn-commerce-icon {
	font-size: 12px !important;
	margin-right: 2px !important;
}

.dn-size-auto .dn-commerce-label {
	font-size: 12px !important;
}

/* Archive side-by-side */
.products .product .dn-wishlist-btn,
.products .product .dn-compare-btn {
	display: inline-flex !important;
	width: auto !important;
	max-width: max-content !important;
	clear: none !important;
	float: none !important;
	vertical-align: middle !important;
	white-space: nowrap !important;
}

/* Single product */
.single-product .dn-commerce-btn {
	margin-top: 12px;
	margin-right: 18px;
}

/* Page layout */
.dn-commerce-page {
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 16px;
}

.dn-commerce-page h1 {
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 22px;
	font-weight: 800;
	color: var(--dn-text);
}

.dn-commerce-empty {
	background: #fff7f5;
	border: 1px solid #ffd6cf;
	color: #7c2d12;
	padding: 18px 20px;
	border-radius: 16px;
	font-weight: 600;
}

/* Page meta / counters */
.dn-commerce-page-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 14px 16px;
	margin-bottom: 20px;
	font-weight: 700;
	color: #111827;
}

.dn-commerce-page-meta strong {
	color: var(--dn-commerce-color);
}

/* Wishlist grid */
.dn-commerce-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.dn-commerce-card {
	background: var(--dn-bg);
	border: 1px solid var(--dn-border);
	border-radius: 20px;
	padding: 16px;
	box-shadow: var(--dn-shadow);
	transition: all .25s ease;
	position: relative;
}

.dn-commerce-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}

.dn-commerce-card img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	background: #f8fafc;
}

.dn-commerce-card h3 {
	font-size: 15px;
	line-height: 1.4;
	margin: 12px 0 8px;
	color: var(--dn-text);
}

.dn-price {
	font-weight: 800;
	color: var(--dn-commerce-color);
	margin-bottom: 12px;
}

.dn-view-product {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--dn-text);
	color: #fff;
	text-decoration: none;
	border-radius: 12px;
	padding: 10px 14px;
	font-weight: 700;
	font-size: 13px;
	transition: all .2s ease;
}

.dn-view-product:hover {
	background: var(--dn-commerce-color);
	color: #fff;
}

/* Remove / clear buttons */
.dn-remove-wishlist-item,
.dn-remove-compare-item,
.dn-clear-compare {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #fee2e2;
	background: #fff7f7;
	color: #b91c1c;
	border-radius: 10px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: all .2s ease;
	margin: 0 8px 10px 0;
}

.dn-remove-wishlist-item:hover,
.dn-remove-compare-item:hover,
.dn-clear-compare:hover {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #fff;
}

.dn-remove-compare-item {
	margin-top: 10px;
}

/* Compare table */
.dn-compare-table-wrap {
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--dn-border);
	border-radius: 20px;
	box-shadow: var(--dn-shadow);
}

.dn-compare-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 760px;
}

.dn-compare-table th,
.dn-compare-table td {
	border-bottom: 1px solid var(--dn-border);
	padding: 16px;
	vertical-align: top;
	text-align: left;
}

.dn-compare-table th {
	width: 180px;
	background: var(--dn-muted);
	font-weight: 800;
	color: var(--dn-text);
}

.dn-compare-table td img {
	max-width: 120px;
	height: auto;
	display: block;
	margin-bottom: 10px;
}

.dn-compare-table td strong {
	display: block;
	color: var(--dn-text);
	font-size: 14px;
	line-height: 1.4;
}

/* Toast */
.dn-commerce-toast {
	position: fixed;
	right: 22px;
	bottom: 24px;
	z-index: 999999;
	background: #111827;
	color: #fff;
	padding: 13px 16px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all .22s ease;
}

.dn-commerce-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Mobile */
@media (max-width: 768px) {
	.dn-commerce-page {
		padding: 20px 12px;
	}

	.dn-commerce-page h1 {
		font-size: 24px;
	}

	.dn-commerce-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 14px;
	}

	.dn-commerce-card {
		padding: 12px;
	}

	.dn-compare-table {
		font-size: 13px;
	}

	.products .product .dn-commerce-btn.dn-display-hover {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}

	.products .product button.dn-commerce-btn.dn-style-text {
		font-size: 11px !important;
		margin-right: 6px !important;
	}
}


/* Final YITH text-link look */
.products .product button.dn-commerce-btn.dn-style-text {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 6px 12px 0 0 !important;
	color: #8a94a6 !important;
	font-size: 13px !important;
	font-weight: 400 !important;
}

.products .product button.dn-commerce-btn.dn-style-text .dn-commerce-icon {
	color: #ff3c20 !important;
	font-size: 14px !important;
	margin-right: 4px !important;
}

.products .product button.dn-commerce-btn.dn-style-text .dn-commerce-label {
	color: #8a94a6 !important;
	font-size: 13px !important;
	font-weight: 400 !important;
}

.products .product button.dn-commerce-btn.dn-style-text:hover,
.products .product button.dn-commerce-btn.dn-style-text:hover .dn-commerce-label {
	color: #ff3c20 !important;
}

.dn-commerce-toast a.dn-toast-link {
	color: #fff;
	font-weight: 800;
	margin-left: 8px;
	text-decoration: underline;
}

.dn-commerce-toast a.dn-toast-link:hover {
	color: #ff3c20;
}

.dn-commerce-toast a.dn-toast-link {
	color: #fff;
	font-weight: 900;
	margin-left: 8px;
	text-decoration: underline;
}

.dn-commerce-toast a.dn-toast-link:hover {
	color: #ff3c20;
}