.wpc-catalog,
.wpc-modal-overlay {
	--wpc-dark: #0d1b2a;
	--wpc-teal: #0d9488;
	--wpc-light-blue: #bae6fd;
	--wpc-border: #e5e7eb;
	--wpc-bg-soft: #eef2f3;
	font-family: inherit;
}
.wpc-catalog {
	max-width: 1200px;
	margin: 0 auto;
	font-size: 1rem;
}

/* Toolbar */
.wpc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.wpc-catalog .wpc-search-wrap {
	position: relative;
	flex: 1 1 320px;
	min-width: 240px;
}
.wpc-catalog .wpc-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	pointer-events: none;
	z-index: 2;
}
.wpc-catalog .wpc-search-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}
.wpc-catalog .wpc-search-wrap .wpc-search-input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 44px 0 46px !important;
	border: 1px solid var(--wpc-border);
	border-radius: 12px;
	background: #fff;
	color: #0f172a;
	font-size: 0.9375rem;
	line-height: 48px;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wpc-catalog .wpc-search-wrap .wpc-search-input::placeholder {
	color: #94a3b8;
	opacity: 1;
}
.wpc-catalog .wpc-search-wrap .wpc-search-input:focus {
	border-color: var(--wpc-teal);
	box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}
.wpc-catalog .wpc-search-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	font-size: 1.125rem;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
	z-index: 2;
}
.wpc-catalog .wpc-search-clear.is-visible {
	display: block;
}
.wpc-catalog .wpc-search-clear:hover {
	background: #e2e8f0;
}
.wpc-toolbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
	margin-left: auto;
}
.wpc-product-count {
	font-weight: 600;
	color: #111827;
	font-size: 0.875rem;
}
.wpc-catalog .wpc-sort-select {
	height: 48px;
	padding: 0 34px 0 14px;
	border: 1px solid var(--wpc-border);
	border-radius: 12px;
	background-color: #fff;
	color: #0f172a;
	font-size: 0.875rem;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

/* Tabs */
.wpc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
.wpc-catalog .wpc-tab {
	border: 1px solid var(--wpc-border);
	background: #fff;
	color: #374151;
	padding: 8px 16px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
}
.wpc-catalog .wpc-tab:hover {
	border-color: var(--wpc-dark);
}
.wpc-catalog .wpc-tab.is-active {
	background: var(--wpc-dark);
	border-color: var(--wpc-dark);
	color: #fff;
}

/* Grid */
.wpc-grid {
	display: grid;
	grid-template-columns: repeat(var(--wpc-columns, auto-fill), minmax(240px, 1fr));
	gap: 24px;
}
@media (max-width: 900px) {
	.wpc-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 600px) {
	.wpc-grid {
		grid-template-columns: 1fr !important;
	}
}
.wpc-loading,
.wpc-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 0;
	color: #6b7280;
}

/* Card */
.wpc-card {
	border: 1px solid var(--wpc-border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.wpc-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
	transform: translateY(-2px);
}
.wpc-card-image {
	position: relative;
	background: var(--wpc-bg-soft);
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
}
.wpc-card-image img {
	max-width: 100%;
	max-height: 160px;
	object-fit: contain;
}
.wpc-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #fff;
	border: 1px solid var(--wpc-border);
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 0.6875rem;
	font-weight: 600;
	color: #374151;
}
.wpc-card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.wpc-card-title {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
	margin: 0 0 8px;
}
.wpc-card-desc {
	color: #6b7280;
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0 0 16px;
}
.wpc-card-bottom {
	margin-top: auto;
	padding-top: 6px;
}
.wpc-card-cat-row {
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.wpc-catalog .wpc-card-category {
	display: inline-block;
	background: #e6f6f4;
	color: #0f766e;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
}
.wpc-card-actions {
	display: flex;
	gap: 10px;
}

.wpc-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
}
.wpc-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.wpc-status-in_stock {
	background: #dcfce7;
	color: #15803d;
}
.wpc-status-limited {
	background: #fef3c7;
	color: #b45309;
}
.wpc-status-out_of_stock {
	background: #fee2e2;
	color: #b91c1c;
}

/* Buttons - strong selectors so the theme's button styles can't break them */
.wpc-catalog .wpc-btn,
.wpc-modal-overlay .wpc-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	flex: 1 1 0;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0 16px !important;
	border: 1.5px solid transparent !important;
	border-radius: 999px !important;
	font-family: inherit;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.wpc-catalog .wpc-btn svg,
.wpc-modal-overlay .wpc-btn svg {
	flex: none;
	width: 14px;
	height: 14px;
}
.wpc-catalog .wpc-btn-dark,
.wpc-modal-overlay .wpc-btn-dark {
	background: var(--wpc-dark) !important;
	border-color: var(--wpc-dark) !important;
	color: #fff !important;
}
.wpc-catalog .wpc-btn-dark:hover,
.wpc-modal-overlay .wpc-btn-dark:hover {
	background: #1b3149 !important;
	border-color: #1b3149 !important;
	color: #fff !important;
}
.wpc-catalog .wpc-btn-light,
.wpc-modal-overlay .wpc-btn-light {
	background: #fff !important;
	border-color: #cbd5e1 !important;
	color: var(--wpc-dark) !important;
}
.wpc-catalog .wpc-btn-light:hover,
.wpc-modal-overlay .wpc-btn-light:hover {
	background: #f1f5f9 !important;
	border-color: var(--wpc-dark) !important;
	color: var(--wpc-dark) !important;
}
.wpc-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* Pagination */
.wpc-pagination {
	margin-top: 28px;
	display: flex;
	justify-content: center;
}
.wpc-pager {
	display: flex;
	gap: 6px;
}
.wpc-page-btn {
	min-width: 36px;
	height: 36px;
	border: 1px solid var(--wpc-border);
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.875rem;
}
.wpc-page-btn.is-active {
	background: var(--wpc-dark);
	border-color: var(--wpc-dark);
	color: #fff;
}
.wpc-page-btn:disabled {
	opacity: .4;
	cursor: not-allowed;
}

/* Modal */
.wpc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}
.wpc-modal-overlay.is-open {
	display: flex;
}
.wpc-modal {
	background: #fff;
	border-radius: 16px;
	max-width: 900px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
	padding: 32px;
	box-sizing: border-box;
}
.wpc-modal-overlay .wpc-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	min-height: 0 !important;
	margin: 0;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 1px solid var(--wpc-border) !important;
	background: #fff !important;
	color: #374151 !important;
	font-size: 1.125rem !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
	z-index: 3;
}
.wpc-modal-overlay .wpc-modal-close:hover {
	background: #f1f5f9 !important;
}

/* Details modal */
.wpc-details-body {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 32px;
}
.wpc-details-image {
	background: var(--wpc-bg-soft);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	min-height: 260px;
	overflow: hidden;
}
.wpc-details-image img {
	max-width: 100%;
	max-height: 320px;
	object-fit: contain;
	transition: transform 0.35s ease;
}
.wpc-details-image:hover img {
	transform: scale(1.12);
}
.wpc-details-eyebrow {
	color: var(--wpc-teal);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: .04em;
	margin-bottom: 8px;
}
.wpc-details-title {
	font-size: 1.875rem;
	font-weight: 800;
	margin: 0 0 12px;
	color: #0f172a;
}
.wpc-details-tagline {
	color: #4b5563;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 16px;
}
.wpc-details-sku {
	font-size: 0.875rem;
	color: #374151;
	margin-bottom: 16px;
}
.wpc-details-info h4 {
	font-size: 0.9375rem;
	font-weight: 700;
	margin: 20px 0 10px;
	color: #111827;
}
.wpc-specs-list {
	margin: 0;
	padding-left: 18px;
	color: #374151;
	font-size: 0.875rem;
	line-height: 1.9;
}
.wpc-applications-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.wpc-modal-overlay .wpc-tag {
	display: inline-block;
	background: #eef2f7;
	border: 1px solid #dbe3ec;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.8125rem;
	line-height: 1.3;
	color: #334155;
}
.wpc-short-description {
	font-size: 0.875rem;
	line-height: 1.7;
	color: #374151;
	margin-bottom: 16px;
}
.wpc-short-description p {
	margin: 0 0 10px;
}
.wpc-short-description ul,
.wpc-short-description ol {
	margin: 0 0 10px;
	padding-left: 20px;
}
.wpc-short-description a {
	color: inherit;
	text-decoration: underline;
}
.wpc-long-description {
	font-size: 0.875rem;
	line-height: 1.7;
	color: #374151;
}
.wpc-short-description table,
.wpc-long-description table {
	width: 100% !important;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--wpc-border);
	margin: 10px 0;
}
.wpc-short-description table td,
.wpc-short-description table th,
.wpc-long-description table td,
.wpc-long-description table th {
	word-break: break-word;
	padding: 10px 12px;
	border-bottom: 1px solid var(--wpc-border);
	text-align: left;
}
.wpc-short-description table th,
.wpc-long-description table th {
	background: var(--wpc-dark);
	color: #fff;
	font-weight: 700;
}
.wpc-short-description table tr:last-child td,
.wpc-long-description table tr:last-child td {
	border-bottom: none;
}
.wpc-short-description table tr:nth-child(even) td,
.wpc-long-description table tr:nth-child(even) td {
	background: var(--wpc-bg-soft);
}
.wpc-short-description table tr:nth-child(odd) td,
.wpc-long-description table tr:nth-child(odd) td {
	background: #fff;
}
.wpc-short-description table td:first-child,
.wpc-long-description table td:first-child {
	font-weight: 700;
	color: var(--wpc-dark);
}

/* Compare popup */
.wpc-modal-compare-result {
	max-width: 1200px;
	width: 94vw;
}
.wpc-compare-result-body {
	max-width: 100%;
}
.wpc-compare-content {
	padding: 18px 20px 22px;
	font-size: 0.875rem;
	line-height: 1.7;
	color: #374151;
	max-width: 100%;
	overflow-wrap: anywhere; /* long unbroken text/links wrap instead of pushing the popup sideways */
}
.wpc-compare-content img {
	max-width: 100%;
	height: auto;
}
/* If a pasted comparison block contains its own <table>, force it to fit
   the popup width instead of forcing a horizontal scrollbar. */
.wpc-compare-content table {
	width: 100% !important;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--wpc-border);
}
.wpc-compare-content table td,
.wpc-compare-content table th {
	word-break: break-word;
	padding: 10px 12px;
	border-bottom: 1px solid var(--wpc-border);
}
.wpc-compare-content table th {
	background: var(--wpc-dark);
	color: #fff;
	font-weight: 700;
	text-align: left;
}
.wpc-compare-content table tr:last-child td {
	border-bottom: none;
}
.wpc-compare-content table tr:nth-child(even) td {
	background: var(--wpc-bg-soft);
}
.wpc-compare-content table tr:nth-child(odd) td {
	background: #fff;
}
.wpc-compare-content table td:first-child {
	font-weight: 700;
	color: var(--wpc-dark);
}
.wpc-compare-content p {
	margin: 0 0 10px;
}
.wpc-compare-content ul,
.wpc-compare-content ol {
	margin: 0 0 10px;
	padding-left: 20px;
}
.wpc-compare-content li {
	margin-bottom: 6px;
}
.wpc-compare-content li::marker {
	color: var(--wpc-teal);
}
.wpc-compare-empty {
	color: #9ca3af;
	font-style: italic;
}
.wpc-compare-cta {
	padding: 18px 20px 22px;
	border-top: 1px solid var(--wpc-border);
	margin-top: 4px;
}
.wpc-compare-cta .wpc-btn svg {
	margin-left: 6px;
	vertical-align: middle;
}

/* Request a Quote + Compare buttons (end of the popup) */
.wpc-details-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--wpc-border);
}
.wpc-modal-overlay .wpc-details-cta .wpc-btn {
	flex: 1 1 200px;
	width: auto;
	min-width: 200px;
	min-height: 48px;
}

/* Quote modal (opens above the product popup) */
.wpc-modal-overlay.wpc-modal-overlay-top {
	z-index: 100001;
}
.wpc-modal.wpc-modal-quote {
	max-width: 560px;
}
.wpc-quote-title {
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 800;
	color: #0f172a;
}
.wpc-quote-sub {
	margin: 0 0 20px;
	color: #64748b;
	font-size: 0.875rem;
	line-height: 1.5;
}
.wpc-quote-form .wpc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
	flex: 1;
	min-width: 0;
}
.wpc-quote-form .wpc-field-row {
	display: flex;
	gap: 14px;
}
.wpc-quote-form label {
	font-size: 0.8125rem;
	font-weight: 700;
	color: #1e293b;
}
.wpc-quote-form .wpc-req {
	color: #dc2626;
}
.wpc-modal-overlay .wpc-quote-form input[type="text"],
.wpc-modal-overlay .wpc-quote-form input[type="email"],
.wpc-modal-overlay .wpc-quote-form select,
.wpc-modal-overlay .wpc-quote-form textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 11px 14px !important;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	font-family: inherit;
	font-size: 0.875rem;
	line-height: 1.4;
	box-sizing: border-box;
	box-shadow: none;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wpc-modal-overlay .wpc-quote-form textarea {
	resize: vertical;
	min-height: 96px;
}
.wpc-modal-overlay .wpc-quote-form input:focus,
.wpc-modal-overlay .wpc-quote-form select:focus,
.wpc-modal-overlay .wpc-quote-form textarea:focus {
	border-color: var(--wpc-teal);
	box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}
.wpc-modal-overlay .wpc-quote-form input[readonly] {
	background: #f1f5f9;
	color: #334155;
	font-weight: 600;
	cursor: default;
}
.wpc-quote-form .wpc-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}
.wpc-quote-msg {
	min-height: 20px;
	margin-bottom: 8px;
	font-size: 0.8125rem;
	color: #475569;
}
.wpc-quote-msg.is-error {
	color: #b91c1c;
}
.wpc-modal-overlay .wpc-quote-form .wpc-quote-submit {
	flex: none;
	width: 100%;
	min-height: 48px;
}
.wpc-quote-success {
	text-align: center;
	padding: 24px 8px 8px;
}
.wpc-quote-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #dcfce7;
	color: #15803d;
	font-size: 1.75rem;
	line-height: 56px;
	font-weight: 700;
}
.wpc-quote-success-text {
	margin: 0 0 20px;
	font-size: 1rem;
	line-height: 1.6;
	color: #1e293b;
}
.wpc-modal-overlay .wpc-quote-success .wpc-btn {
	flex: none;
	min-width: 140px;
}

@media (max-width: 700px) {
	.wpc-details-body {
		grid-template-columns: 1fr;
	}
	.wpc-quote-form .wpc-field-row {
		flex-direction: column;
		gap: 0;
	}
	.wpc-modal {
		padding: 24px 18px;
	}
	.wpc-toolbar-right {
		width: 100%;
		justify-content: space-between;
	}
}
