/* =============================================================================
   DPRTE Supplier Directory — DPRTE Dark Theme
   Palette: Dark #171717 | Gold #C8AD91 | White #fff
   Font: Poppins
   Loaded only when "Use DPRTE Default Theme" is checked in plugin settings.
   ============================================================================= */

/* --- Widget base --- */
.sd-wrapper {
	font-family: 'Poppins', sans-serif;
	color: #fff;
}

/* --- Filter Toolbar --- */
.sd-toolbar {
	background: rgba(200, 173, 145, 0.06);
	border: 1px solid rgba(200, 173, 145, 0.15);
	border-radius: 8px;
	padding: 20px 24px;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.sd-filter-label {
	font-family: 'Poppins', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #C8AD91;
	margin-bottom: 6px;
}

/* Selects and search input */
.sd-filter-region,
.sd-filter-category,
.sd-filter-search,
.sd-sort-select {
	font-family: 'Poppins', sans-serif;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(200, 173, 145, 0.3);
	border-radius: 4px;
	color: #fff;
	font-size: 13px;
	height: 42px;
	padding: 0 14px;
	line-height: 42px;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

/* Selects: remove native arrow and inject a gold chevron */
.sd-filter-region,
.sd-filter-category,
.sd-sort-select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8AD91' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

/* Search input keeps full padding (no arrow) */
.sd-filter-search {
	padding: 0 14px;
}

.sd-filter-region:focus,
.sd-filter-category:focus,
.sd-filter-search:focus,
.sd-sort-select:focus {
	outline: none;
	border-color: #C8AD91;
	background: rgba(200, 173, 145, 0.08);
}

.sd-filter-region option,
.sd-filter-category option,
.sd-sort-select option {
	background: #1e1e1e;
	color: #fff;
}

.sd-filter-search::placeholder {
	color: rgba(200, 173, 145, 0.5);
}

/* Clear Filters button */
.sd-clear-filters {
	font-family: 'Poppins', sans-serif !important;
	background: transparent !important;
	border: 1px solid rgba(200, 173, 145, 0.4) !important;
	border-radius: 4px !important;
	color: #C8AD91 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	padding: 10px 18px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	letter-spacing: 0.04em !important;
	text-decoration: none !important;
}

.sd-clear-filters:hover {
	background: rgba(200, 173, 145, 0.12) !important;
	border-color: #C8AD91 !important;
	color: #fff !important;
}

/* --- Controls bar (sort + view toggle) --- */
.sd-controls {
	gap: 16px;
}

/* View toggle buttons */
.sd-view-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: transparent !important;
	border: 1px solid rgba(200, 173, 145, 0.3) !important;
	border-radius: 4px !important;
	color: rgba(200, 173, 145, 0.6) !important;
	width: 42px !important;
	height: 42px !important;
	padding: 0 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.sd-view-btn.is-active,
.sd-view-btn:hover {
	background: #C8AD91 !important;
	border-color: #C8AD91 !important;
	color: #171717 !important;
	box-shadow: none !important;
}

/* --- Cards Grid --- */
.sd-grid {
	gap: 20px;
}

/* --- Individual Card --- */
.sd-card {
	background: #1f1f1f;
	border: 1px solid rgba(200, 173, 145, 0.15);
	border-radius: 10px;
	color: #fff;
	overflow: hidden;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	flex-direction: column;
}

.sd-card:hover {
	border-color: rgba(200, 173, 145, 0.55);
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* Logo area — unified container for grid, table row, and contact card */
.sd-card__logo-wrap,
.sd-row__logo-wrap,
.sd-contact-card__logo-wrap {
	background: #f4f4f4;
	border: 1px solid rgba(200, 173, 145, 0.25);
	border-radius: 4px;
	box-sizing: border-box;
	overflow: hidden;
}

.sd-card__logo-wrap {
	min-height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sd-card__logo {
	max-height: 80px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

/* Card body */
.sd-card__body {
	padding: 18px 18px 12px;
	flex: 1;
	flex-direction: column;
	gap: 8px;
}

/* Card title */
.sd-card__title {
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.4;
}

.sd-card__title-link {
	color: #C8AD91 !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sd-card__title-link:hover {
	color: #fff !important;
}

/* Card excerpt */
.sd-card__excerpt {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.6;
	margin: 0 0 12px;
}

/* Meta / tags section */
.sd-card__meta {
	margin-top: auto;
	padding-top: 10px;
	gap: 6px;
	flex-direction: column;
}

.sd-card__tags {
	flex-wrap: wrap;
	gap: 5px;
}

/* Region tags - gold */
.sd-tag--region {
	background: rgba(200, 173, 145, 0.15) !important;
	border: 1px solid rgba(200, 173, 145, 0.3) !important;
	color: #C8AD91 !important;
	border-radius: 3px;
	font-size: 10px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 2px 8px;
}

/* Category tags - subtle white */
.sd-tag--category {
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	color: rgba(255, 255, 255, 0.75) !important;
	border-radius: 3px;
	font-size: 10px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 2px 8px;
}

/* Card footer */
.sd-card__footer {
	padding: 12px 18px 16px;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid rgba(200, 173, 145, 0.08);
}

/* View Supplier CTA button */
.sd-btn--card {
	font-family: 'Poppins', sans-serif !important;
	background: #C8AD91 !important;
	color: #171717 !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	padding: 10px 20px !important;
	text-decoration: none !important;
	letter-spacing: 0.03em !important;
	transition: background 0.2s ease, transform 0.15s ease !important;
	display: inline-block !important;
}

.sd-btn--card:hover {
	background: #fff !important;
	color: #171717 !important;
	transform: translateY(-1px) !important;
}

/* External website icon */
.sd-card__website {
	color: rgba(200, 173, 145, 0.5);
	font-size: 14px;
	transition: color 0.2s ease;
}

.sd-card__website:hover {
	color: #C8AD91;
}

/* Load more button */
.sd-load-more {
	font-family: 'Poppins', sans-serif;
	background: transparent;
	border: 1px solid rgba(200, 173, 145, 0.4);
	border-radius: 4px;
	color: #C8AD91;
	font-size: 13px;
	font-weight: 600;
	padding: 12px 28px;
	cursor: pointer;
	transition: all 0.2s ease;
	letter-spacing: 0.04em;
	margin-top: 24px;
}

.sd-load-more:hover {
	background: #C8AD91;
	border-color: #C8AD91;
	color: #171717;
}

/* --- Table Header --- */
.sd-table-header {
	background: #171717;
	border: 1px solid rgba(200, 173, 145, 0.2);
	border-bottom: 1px solid rgba(200, 173, 145, 0.35);
	border-radius: 8px 8px 0 0;
	color: #C8AD91;
	font-family: 'Poppins', sans-serif;
	font-size: 10px;
	letter-spacing: 0.1em;
}

/* --- Table Container --- */
.sd-table {
	border: 1px solid rgba(200, 173, 145, 0.2);
	border-top: none;
	border-radius: 0 0 8px 8px;
}

.sd-table--sticky {
	border: 1px solid rgba(200, 173, 145, 0.4);
	border-radius: 8px;
}

/* --- Table Rows --- */
.sd-row {
	border-bottom: 1px solid rgba(200, 173, 145, 0.1);
	background: #1f1f1f;
}

.sd-row:last-child {
	border-bottom: none;
}

.sd-row--featured {
	background: #232016;
}

.sd-row__header {
	transition: background 0.2s ease;
}

.sd-row__header:hover {
	background: #2a2a2a;
}

.sd-row__header[aria-expanded="true"] {
	background: #252117;
	border-bottom: 1px solid rgba(200, 173, 145, 0.2);
}

.sd-row__name {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #C8AD91;
}

.sd-row__toggle {
	color: rgba(200, 173, 145, 0.5);
}

.sd-row__header[aria-expanded="true"] .sd-row__toggle {
	color: #C8AD91;
}

.sd-row__logo-placeholder {
	background: #2a2a2a;
}

/* --- Accordion Panel --- */
.sd-row__panel-inner {
	border-top: none;
}

.sd-row__excerpt {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
}

.sd-row__read-more {
	color: #C8AD91 !important;
	text-decoration: underline !important;
	transition: color 0.2s ease;
}

.sd-row__read-more:hover {
	color: #fff !important;
}

.sd-row__contact-label {
	color: #C8AD91;
	font-family: 'Poppins', sans-serif;
}

.sd-row__contact-item a {
	color: #C8AD91;
}

.sd-row__contact-item address {
	color: rgba(255, 255, 255, 0.7);
}

/* --- Sticky section --- */
.sd-sticky-label__text {
	background: rgba(200, 173, 145, 0.1);
	border-color: rgba(200, 173, 145, 0.4);
	color: #C8AD91;
}

.sd-sticky-divider {
	background: rgba(200, 173, 145, 0.15);
}

/* --- No results --- */
.sd-no-results {
	color: rgba(255, 255, 255, 0.4);
}

/* --- Loading spinner --- */
.sd-spinner {
	border-color: rgba(200, 173, 145, 0.2);
	border-top-color: #C8AD91;
}

/* --- Sidebar Contact Card --- */
.sd-contact-card {
	background: #1f1f1f;
	border: 1px solid rgba(200, 173, 145, 0.2);
	color: #fff;
	font-family: 'Poppins', sans-serif;
}

.sd-contact-card__title {
	color: #C8AD91;
	font-family: 'Poppins', sans-serif;
}

.sd-contact-card__label {
	color: #C8AD91;
	font-family: 'Poppins', sans-serif;
}

.sd-contact-card__value,
.sd-contact-card__value address {
	color: rgba(255, 255, 255, 0.75);
}

.sd-contact-card__value a,
a.sd-contact-card__value {
	color: #C8AD91;
}

.sd-contact-card__value a:hover,
a.sd-contact-card__value:hover {
	color: #fff;
}
