/* Woo Product Compare - Frontend Styles */

/* ── Add to Compare Button ── */
.wpc-add-to-compare {
	margin-top: 8px;
	font-size: 13px;
	cursor: pointer;
}
.wpc-add-to-compare.wpc-in-compare {
	opacity: 0.75;
}

/* ── Floating Compare Bar ── */
#wpc-floating-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #1a1a2e;
	color: #fff;
	z-index: 99999;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: 0 -2px 10px rgba(0,0,0,.25);
	transform: translateY(100%);
	transition: transform .3s ease;
}
#wpc-floating-bar.wpc-bar-visible {
	transform: translateY(0);
}
#wpc-bar-products {
	display: flex;
	gap: 12px;
	flex: 1;
	flex-wrap: wrap;
}
.wpc-bar-item {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,.1);
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 13px;
}
.wpc-bar-item .wpc-bar-remove {
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	opacity: .7;
}
.wpc-bar-item .wpc-bar-remove:hover { opacity: 1; }
#wpc-bar-compare-btn {
	background: #e47911;
	color: #fff;
	border: none;
	padding: 8px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
#wpc-bar-compare-btn:hover { background: #c96d00; }
#wpc-bar-clear-btn {
	background: transparent;
	color: #aaa;
	border: 1px solid #555;
	padding: 8px 14px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	white-space: nowrap;
}
#wpc-bar-clear-btn:hover { color: #fff; border-color: #fff; }

/* ── Modal ── */
#wpc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}
#wpc-modal {
	background: #fff;
	border-radius: 8px;
	max-width: 96vw;
	max-height: 88vh;
	overflow: auto;
	position: relative;
	padding: 32px;
	min-width: 320px;
}
#wpc-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #333;
}

/* ── Compare Table ── */
.wpc-compare-table-wrapper {
	overflow-x: auto;
}
.wpc-compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.wpc-compare-table th,
.wpc-compare-table td {
	border: 1px solid #e0e0e0;
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}
.wpc-compare-table th {
	background: #f5f5f5;
	font-weight: 600;
	white-space: nowrap;
	width: 130px;
}
.wpc-compare-table .wpc-product-thumb {
	max-width: 80px;
	height: auto;
	display: block;
}
.wpc-compare-table .wpc-product-title a {
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}
.wpc-compare-table .wpc-remove-col {
	text-align: center;
}
.wpc-compare-table .wpc-remove-col button {
	background: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 4px 10px;
	cursor: pointer;
	font-size: 12px;
	color: #666;
}
.wpc-compare-table .wpc-remove-col button:hover {
	background: #fee;
	border-color: #d00;
	color: #d00;
}
.wpc-compare-empty {
	padding: 20px;
	color: #888;
	text-align: center;
}