/**
 * Afvalbakkie Container Configurator
 *
 * Functional, neutral styling. Designed to be easily overridden by
 * theme CSS or a future brand stylesheet.
 *
 * @version 0.2.0
 */

/* ═══════════════════════════════════════
   Layout
   ═══════════════════════════════════════ */

.afvalbakkie-configurator {
	max-width: 960px;
	margin: 0 auto;
}

/* ───────── Step titles ───────── */

.afvalbakkie-step-title {
	font-size: 1.5em;
	font-weight: 700;
	margin: 0 0 1em;
}

/* ───────── Grids ───────── */

.afvalbakkie-stream-grid,
.afvalbakkie-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5em;
	margin-bottom: 2em;
}

/* ═══════════════════════════════════════
   Stream card (step 1)
   ═══════════════════════════════════════ */

.afvalbakkie-stream-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.5em;
	text-align: center;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.afvalbakkie-stream-card:hover,
.afvalbakkie-stream-card:focus {
	border-color: #0073aa;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	color: inherit;
}

.afvalbakkie-stream-card__badge {
	display: inline-block;
	background: #0073aa;
	color: #fff;
	font-size: 0.75em;
	font-weight: 600;
	padding: 0.2em 0.75em;
	border-radius: 3px;
	margin-bottom: 0.75em;
	line-height: 1.4;
}

.afvalbakkie-stream-card__image {
	width: 100%;
	height: auto;
	max-height: 120px;
	object-fit: contain;
	margin-bottom: 0.75em;
}

.afvalbakkie-stream-card__name {
	font-size: 1.1em;
	font-weight: 600;
	margin: 0 0 0.25em;
}

.afvalbakkie-stream-card__description {
	font-size: 0.9em;
	color: #666;
	margin: 0;
}

/* ═══════════════════════════════════════
   Step 2 — format selection
   ═══════════════════════════════════════ */

.afvalbakkie-step-format[hidden] {
	display: none;
}

.afvalbakkie-no-products {
	color: #666;
	font-style: italic;
}

/* ───────── Back link ───────── */

.afvalbakkie-back-link {
	display: inline-block;
	margin-bottom: 1em;
	color: #0073aa;
	text-decoration: none;
	font-size: 0.95em;
}

.afvalbakkie-back-link:hover {
	text-decoration: underline;
}

/* ═══════════════════════════════════════
   Product card (step 2)
   ═══════════════════════════════════════ */

.afvalbakkie-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.5em;
	text-align: center;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.afvalbakkie-product-card:hover,
.afvalbakkie-product-card:focus-within {
	border-color: #0073aa;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ───────── Featured state ───────── */

.afvalbakkie-product-card--featured {
	border-color: #0073aa;
	padding-top: 2em;
}

.afvalbakkie-product-card__badge {
	position: absolute;
	top: -0.7em;
	left: 50%;
	transform: translateX(-50%);
	display: inline-block;
	background: #0073aa;
	color: #fff;
	font-size: 0.75em;
	font-weight: 600;
	padding: 0.2em 0.75em;
	border-radius: 3px;
	line-height: 1.4;
	white-space: nowrap;
}

/* ───────── Product card content ───────── */

.afvalbakkie-product-card__image-link {
	display: block;
	width: 100%;
	text-decoration: none;
}

.afvalbakkie-product-card__image {
	width: 100%;
	height: auto;
	max-height: 160px;
	object-fit: contain;
	margin-bottom: 0.75em;
}

.afvalbakkie-product-card__format {
	font-size: 1.3em;
	font-weight: 700;
	margin: 0 0 0.25em;
}

.afvalbakkie-product-card__format a {
	color: inherit;
	text-decoration: none;
}

.afvalbakkie-product-card__format a:hover {
	text-decoration: underline;
}

.afvalbakkie-product-card__price {
	font-size: 1.1em;
	margin: 0 0 0.75em;
}

.afvalbakkie-product-card__more-link {
	display: inline-block;
	font-size: 0.9em;
	color: #0073aa;
	text-decoration: none;
	margin-bottom: 0.75em;
}

.afvalbakkie-product-card__more-link:hover {
	text-decoration: underline;
}

.afvalbakkie-product-card .button {
	margin-top: auto;
}

/* Button loading state (applied by WooCommerce wc-add-to-cart.js) */
.afvalbakkie-product-card .button.loading {
	opacity: 0.6;
	pointer-events: none;
}

.afvalbakkie-product-card .button.added::after {
	content: " ✓";
}

/* ═══════════════════════════════════════
   Waste info block ([afvalbakkie_waste_info])
   ═══════════════════════════════════════ */

.afvalbakkie-waste-info {
	margin: 1.5em 0;
}

.afvalbakkie-waste-info__heading {
	font-size: 1.3em;
	font-weight: 700;
	margin: 0 0 0.75em;
}

.afvalbakkie-waste-info__section {
	margin-bottom: 1.25em;
}

.afvalbakkie-waste-info__title {
	font-size: 1em;
	font-weight: 600;
	margin: 0 0 0.4em;
}

.afvalbakkie-waste-info__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.afvalbakkie-waste-info__list li {
	padding: 0.3em 0 0.3em 1.6em;
	position: relative;
	line-height: 1.4;
}

.afvalbakkie-waste-info__list li::before {
	position: absolute;
	left: 0;
	font-weight: 700;
}

.afvalbakkie-waste-info__list--allowed li::before {
	content: "✓";
	color: #46b450;
}

.afvalbakkie-waste-info__list--forbidden li::before {
	content: "✗";
	color: #dc3232;
}

.afvalbakkie-waste-info__list--attention li::before {
	content: "⚠";
	color: #ffb900;
}

/* ═══════════════════════════════════════
   Waste content shortcodes
   ([afvalbakkie_{slug}_allowed] etc.)

   Intentionally minimal — Elementor controls
   headings, columns, spacing, and colours.
   ═══════════════════════════════════════ */

.afvalbakkie-waste-content ul {
	margin: 0.5em 0 0;
}

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */

@media (max-width: 600px) {
	.afvalbakkie-stream-grid,
	.afvalbakkie-product-grid {
		grid-template-columns: 1fr;
	}

	.afvalbakkie-step-title {
		font-size: 1.25em;
	}
}
