/* ── Offerte modal ─────────────────────────────────────────── */
.offerte-dialog {
	border: none;
	border-radius: var(--radius-lg, 10px);
	padding: 0;
	width: min(96vw, 560px);
	max-height: 92dvh;
	overflow-y: auto;
	background: var(--surface, #fff);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
}

.offerte-dialog::backdrop {
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
}

.offerte-dialog-inner {
	padding: 28px 28px 24px;
}

.offerte-dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.offerte-dialog-header h2 {
	margin: 0;
	font-size: 1.2rem;
	color: var(--text-heading, #111);
}

.offerte-close {
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	color: #777;
	padding: 0 4px;
}
.offerte-close:hover {
	color: var(--text, #111);
}

.offerte-product-name {
	margin: 0 0 16px;
	font-size: 0.92rem;
	color: #555;
	border-left: 3px solid var(--accent);
	padding-left: 10px;
	font-style: italic;
}

.offerte-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.offerte-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.offerte-field label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text, #111);
}

.offerte-field label span {
	color: #c0392b;
}

.offerte-field input,
.offerte-field textarea {
	border: 1px solid #ddd;
	border-radius: var(--radius-sm, 4px);
	padding: 8px 10px;
	font-size: 0.92rem;
	font-family: inherit;
	color: var(--text, #111);
	background: var(--surface, #fff);
	transition: border-color 0.15s;
}

.offerte-field input:focus,
.offerte-field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(240, 128, 0, 0.15);
}

.offerte-field--short {
	grid-column: span 1;
}
.offerte-field--full {
	grid-column: span 2;
}

.offerte-field textarea {
	resize: vertical;
	min-height: 90px;
}

.offerte-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

.offerte-btn-cancel {
	background: none;
	border: 1px solid #ccc;
	border-radius: var(--radius-sm, 4px);
	padding: 9px 18px;
	cursor: pointer;
	font-size: 0.92rem;
	color: #555;
}
.offerte-btn-cancel:hover {
	border-color: #999;
	color: #111;
}

/* Flash message */
.offerte-flash {
	margin: 16px auto;
	max-width: 860px;
	padding: 12px 18px;
	border-radius: var(--radius-sm, 4px);
	font-size: 0.94rem;
	font-weight: 500;
}
.offerte-flash--success {
	background: var(--surface-success, #edf9ee);
	color: #1e6e35;
	border: 1px solid #b2dfbd;
}
.offerte-flash--error {
	background: var(--surface-danger-strong, #fdeceb);
	color: #a02020;
	border: 1px solid #f5c2bb;
}

/* ── Favorites / Wishlist button states ─────────────────────── */
.link-btn.is-active {
	color: var(--accent-dark);
	font-weight: 600;
}

/* ── Header favorites badge ─────────────────────────────────── */
.fav-header-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.header-badge {
	display: inline-block;
	background: var(--accent);
	color: #111;
	font-size: 0.72rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 1px 7px;
	line-height: 1.5;
	min-width: 18px;
	text-align: center;
}

/* ── Compare floating bar ───────────────────────────────────── */
.compare-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 500;
	background: var(--header-bg, #1e1e1e);
	color: #fff;
	border-top: 2px solid var(--accent);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.22);
}

.compare-bar-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 16px;
	flex-wrap: wrap;
}

.compare-bar-label {
	font-weight: 700;
	font-size: 0.88rem;
	white-space: nowrap;
	color: var(--accent);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.compare-bar-items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1;
}

.cmp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	padding: 4px 10px 4px 12px;
	font-size: 0.82rem;
	max-width: 220px;
}

.cmp-chip-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cmp-chip-remove {
	background: none;
	border: none;
	color: #aaa;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1;
	padding: 0;
	flex-shrink: 0;
}
.cmp-chip-remove:hover {
	color: #fff;
}

.compare-bar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.compare-bar-btn {
	padding: 8px 18px;
	font-size: 0.88rem;
	white-space: nowrap;
}

.compare-bar-clear {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ccc;
	border-radius: var(--radius-sm, 4px);
	padding: 7px 12px;
	cursor: pointer;
	font-size: 0.82rem;
	white-space: nowrap;
}
.compare-bar-clear:hover {
	border-color: #fff;
	color: #fff;
}

/* ── Favorieten page ────────────────────────────────────────── */
.wishlist-page,
.compare-page {
	padding: 32px 16px 64px;
}

.wishlist-page .container,
.compare-page .container {
	max-width: 1200px;
	margin: 0 auto;
}

.wishlist-page h1,
.compare-page h1 {
	margin: 8px 0 20px;
	font-size: 1.6rem;
}

.wishlist-empty {
	text-align: center;
	padding: 60px 24px;
}

.wishlist-empty-text {
	font-size: 1.1rem;
	color: #777;
	margin-bottom: 20px;
}

.wishlist-count {
	margin: 0 0 20px;
	color: #555;
	font-size: 0.95rem;
}

.fav-card-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	color: var(--accent-dark, #b8860b);
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition:
		background 0.15s,
		transform 0.15s;
}
.fav-card-btn:hover {
	background: #fff;
	transform: scale(1.1);
}

/* ── Vergelijken page ───────────────────────────────────────── */
.compare-table-wrap {
	overflow-x: auto;
	border-radius: var(--radius-lg, 10px);
	border: 1px solid var(--border, #e5e5e3);
}

.compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	min-width: 500px;
}

.compare-table thead tr {
	background: var(--surface-muted, #f5f5f3);
	border-bottom: 2px solid var(--border, #e5e5e3);
}

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

.compare-table th[scope="col"] {
	width: 220px;
	vertical-align: bottom;
}

.compare-label-col {
	width: 140px;
	font-size: 0.82rem;
	color: #777;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th {
	border-bottom: none;
}

.compare-table tbody tr:hover {
	background: var(--surface-soft, #f8f8f6);
}

.compare-table th[scope="row"] {
	font-weight: 600;
	font-size: 0.85rem;
	color: #555;
	white-space: nowrap;
	background: var(--surface-soft, #f8f8f6);
}

.compare-thumb {
	display: block;
	width: 110px;
	height: 110px;
	object-fit: contain;
	margin-bottom: 8px;
	border-radius: var(--radius-sm, 4px);
}

.compare-product-name {
	display: block;
	font-weight: 700;
	color: var(--text, #111);
	text-decoration: none;
	font-size: 0.92rem;
	margin-bottom: 8px;
	line-height: 1.3;
}
.compare-product-name:hover {
	text-decoration: underline;
}

.compare-remove {
	font-size: 0.78rem;
	color: #888;
}
.compare-remove:hover {
	color: #c00;
}

.compare-old-price {
	text-decoration: line-through;
	color: #999;
	font-size: 0.85rem;
}

.compare-desc {
	font-size: 0.85rem;
	color: #555;
	line-height: 1.5;
	max-width: 280px;
}

.compare-cta-row td {
	padding-top: 16px;
	padding-bottom: 16px;
}

.price-gold {
	color: var(--accent-dark, #b8860b);
	font-weight: 700;
}

/* Stock indicators (reuse existing if available, define fallback) */
.in-stock {
	color: #1e6e35;
	font-weight: 500;
	font-size: 0.85rem;
}
.out-of-stock {
	color: #a02020;
	font-weight: 500;
	font-size: 0.85rem;
}

@media (max-width: 600px) {
	.offerte-fields {
		grid-template-columns: 1fr;
	}
	.offerte-field--full {
		grid-column: span 1;
	}
	.compare-bar-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.compare-bar-actions {
		width: 100%;
	}
}
