.ed-directory {
	--ed-accent: #b5892f;
	--ed-ink: #1c1c1c;
	--ed-muted: #6b6b6b;
	--ed-border: #e4e0d8;
	--ed-bg-soft: #faf9f6;
	max-width: 1200px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--ed-ink);
}

/* Search form */
.ed-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}
.ed-input, .ed-select {
	padding: 12px 14px;
	border: 1px solid var(--ed-border);
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
}
.ed-input { flex: 1 1 260px; min-width: 200px; }
.ed-select { flex: 0 1 200px; }

.ed-btn {
	padding: 12px 22px;
	border-radius: 6px;
	border: 1px solid var(--ed-accent);
	font-size: 15px;
	cursor: pointer;
	font-weight: 600;
	transition: background .15s ease, color .15s ease;
}
.ed-btn-primary { background: var(--ed-accent); color: #fff; }
.ed-btn-primary:hover { background: #9a7326; }
.ed-btn-outline { background: transparent; color: var(--ed-accent); }
.ed-btn-outline:hover { background: var(--ed-bg-soft); }
.ed-btn[disabled] { opacity: .6; cursor: not-allowed; }

.ed-results-meta {
	color: var(--ed-muted);
	font-size: 14px;
	margin-bottom: 14px;
}

/* Results grid */
.ed-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}
.ed-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--ed-muted);
	padding: 40px 0;
}

.ed-card {
	display: block;
	border: 1px solid var(--ed-border);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: box-shadow .15s ease, transform .15s ease;
}
.ed-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }

.ed-card-image { position: relative; aspect-ratio: 4/3; background: var(--ed-bg-soft); overflow: hidden; }
.ed-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-card-image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #eee, #f7f7f7); }
.ed-card-badge {
	position: absolute; top: 10px; left: 10px;
	background: rgba(28,28,28,.75); color: #fff;
	font-size: 11px; padding: 4px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}

.ed-card-body { padding: 14px 16px 16px; }
.ed-card-title { font-size: 16px; margin: 0 0 6px; line-height: 1.3; }
.ed-card-seller { font-size: 13px; color: var(--ed-muted); margin: 0 0 4px; }
.ed-card-seller-label { font-weight: 600; color: var(--ed-ink); }
.ed-card-location { color: var(--ed-muted); }
.ed-card-moq, .ed-card-price { font-size: 13px; margin: 0 0 2px; color: var(--ed-muted); }
.ed-card-cta { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ed-accent); }

.ed-verified-badge {
	display: inline-flex; align-items: center; gap: 3px;
	background: #e7f4ea; color: #1a7f37;
	font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
	margin-left: 4px; vertical-align: middle;
}

.ed-load-more-wrap { text-align: center; margin-top: 26px; }

/* Single product */
.ed-single-product { max-width: 1100px; margin: 0 auto; padding: 30px 16px 60px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ed-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ed-single-main-image { border: 1px solid #e4e0d8; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.ed-single-main-image img { width: 100%; height: 100%; object-fit: cover; }
.ed-single-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ed-single-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid #e4e0d8; }

.ed-single-title { font-size: 28px; margin: 0 0 12px; }
.ed-single-seller-box { background: #faf9f6; border: 1px solid #e4e0d8; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }
.ed-seller-bio { margin: 8px 0 0; color: #6b6b6b; }

.ed-spec-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.ed-spec-table th { text-align: left; color: #6b6b6b; font-weight: 600; padding: 6px 10px 6px 0; width: 160px; vertical-align: top; }
.ed-spec-table td { padding: 6px 0; }

.ed-single-description { margin-bottom: 24px; line-height: 1.6; }

.ed-more-from-seller { margin-top: 50px; border-top: 1px solid #e4e0d8; padding-top: 30px; }
.ed-more-from-seller h2 { font-size: 20px; margin-bottom: 16px; }

/* Enquiry form */
.ed-enquiry-wrap { border-top: 1px solid #e4e0d8; padding-top: 20px; }
.ed-enquiry-note { font-size: 13px; color: #6b6b6b; margin-top: -4px; }
.ed-enquiry-form { display: flex; flex-direction: column; gap: 6px; }
.ed-enquiry-form label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.ed-enquiry-form input, .ed-enquiry-form textarea {
	padding: 10px 12px; border: 1px solid #e4e0d8; border-radius: 6px; font-size: 14px; font-family: inherit;
}
.ed-enquiry-form button { margin-top: 14px; align-self: flex-start; }
.ed-enquiry-response { font-size: 14px; margin-top: 10px; }
.ed-enquiry-response.success { color: #1a7f37; }
.ed-enquiry-response.error { color: #d63638; }
.ed-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 768px) {
	.ed-single-grid { grid-template-columns: 1fr; }
	.ed-select { flex: 1 1 140px; }
}
