.oempc-container { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.oempc-page-title { font-size: 28px; margin-bottom: 20px; }
.oempc-section-title { font-size: 20px; margin: 30px 0 16px; }

/* Search box */
.oempc-search-box { position: relative; max-width: 520px; margin: 0 0 24px; }
.oempc-search-input { width: 100%; padding: 12px 14px; font-size: 15px; border: 1px solid #d0d5dd; border-radius: 6px; }
.oempc-search-results {
	position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #d0d5dd;
	border-radius: 6px; margin-top: 4px; max-height: 400px; overflow-y: auto; z-index: 40;
	box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.oempc-search-results .oempc-sr-group-title { padding: 8px 12px; font-size: 11px; text-transform: uppercase; color: #888; background: #f7f7f8; }
.oempc-search-results a.oempc-sr-item { display: block; padding: 10px 12px; text-decoration: none; color: #1d2327; border-top: 1px solid #f0f0f1; }
.oempc-search-results a.oempc-sr-item:hover { background: #f7f7f8; }
.oempc-search-results a.oempc-sr-item.oempc-sr-active { background: #eef4fb; }
.oempc-search-results .oempc-sr-empty { padding: 14px; color: #888; }

/* Vehicle grid */
.oempc-vehicle-grid, .oempc-category-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.oempc-vehicle-card, .oempc-category-card {
	display: block; text-decoration: none; color: inherit; border: 1px solid #eaecf0; border-radius: 10px;
	overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; background: #fff;
}
.oempc-vehicle-card:hover, .oempc-category-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.oempc-vehicle-card-image { aspect-ratio: 4 / 3; background: #f2f3f5; overflow: hidden; }
.oempc-vehicle-card-image img { width: 100%; height: 100%; object-fit: cover; }
.oempc-category-card-image { aspect-ratio: 4 / 3; background: #f2f3f5; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.oempc-category-card-image img { width: 100%; height: 100%; object-fit: contain; }
.oempc-vehicle-card-placeholder, .oempc-category-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#eee,#ddd); }
.oempc-vehicle-card-body { padding: 12px 14px; }
.oempc-vehicle-card-body h3 { margin: 0 0 4px; font-size: 16px; }
.oempc-vehicle-card-body p { margin: 0; color: #667085; font-size: 13px; }
.oempc-category-card h3 { padding: 10px 12px; margin: 0; font-size: 15px; text-align: center; }

/* Single vehicle */
.oempc-vehicle-header { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 20px; }
.oempc-vehicle-hero-image { width: 320px; max-width: 100%; border-radius: 10px; object-fit: cover; }
.oempc-vehicle-header-info h1 { margin: 0 0 6px; }
.oempc-vehicle-engine { color: #667085; margin: 0 0 10px; }

/* Category / diagram */
.oempc-breadcrumb { font-size: 13px; color: #667085; margin-bottom: 16px; }
.oempc-breadcrumb a { color: #667085; }
.oempc-diagram-viewer { margin-bottom: 24px; }
.oempc-diagram { margin: 0 0 20px; text-align: center; }
.oempc-diagram-image { max-width: 100%; border: 1px solid #eaecf0; border-radius: 8px; cursor: zoom-in; }
.oempc-diagram figcaption { font-size: 13px; color: #667085; margin-top: 6px; }
.oempc-pdf-link { display: inline-block; margin-top: 6px; font-size: 13px; }

/* Parts table */
.oempc-parts-table { width: 100%; border-collapse: collapse; }
.oempc-parts-table th, .oempc-parts-table td { padding: 10px 12px; border-bottom: 1px solid #eaecf0; text-align: left; vertical-align: top; font-size: 14px; }
.oempc-parts-table thead th { background: #f7f7f8; font-size: 12px; text-transform: uppercase; color: #667085; }
.oempc-part-notes, .oempc-superseded { font-size: 12px; color: #888; margin-top: 4px; }
.oempc-availability { display: flex; flex-direction: column; gap: 4px; }
.oempc-unavailable { color: #b42318; font-size: 13px; font-weight: 600; }
.oempc-stock-status { font-size: 11px; text-transform: uppercase; font-weight: 600; }
.oempc-stock-instock { color: #067647; }
.oempc-stock-outofstock { color: #b42318; }
.oempc-stock-onbackorder { color: #b54708; }
.oempc-btn { display: inline-block; padding: 5px 10px; border-radius: 5px; text-decoration: none; font-size: 12px; font-weight: 600; margin-right: 6px; }
.oempc-btn-view { background: #f0f0f1; color: #1d2327; }
.oempc-btn-cart { background: #1d2327; color: #fff; }

/* Diagram viewer: zoom / pan / fullscreen */
.oempc-diagram-viewport {
	position: relative; overflow: hidden; border: 1px solid #eaecf0; border-radius: 8px;
	background: #f7f7f8; touch-action: none; max-height: 620px;
}
.oempc-diagram-stage {
	position: relative; display: inline-block; transform-origin: center center; transition: transform .08s linear;
	cursor: grab; width: 100%;
}
.oempc-diagram-stage.oempc-dragging { cursor: grabbing; transition: none; }
.oempc-diagram-viewport .oempc-diagram-image { width: 100%; height: auto; display: block; border: 0; border-radius: 0; cursor: zoom-in; }
.oempc-diagram-controls {
	position: absolute; bottom: 10px; right: 10px; display: flex; gap: 4px; background: rgba(255,255,255,.92);
	border-radius: 6px; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.oempc-diagram-controls button {
	width: 30px; height: 30px; border: none; background: #fff; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 700;
}
.oempc-diagram-controls button:hover { background: #f0f0f1; }
.oempc-dc-zoom-reset { width: auto !important; padding: 0 8px; font-size: 11px !important; font-weight: 600 !important; }
.oempc-diagram-viewport:fullscreen, .oempc-diagram-viewport.oempc-fullscreen-fallback {
	max-height: 100vh; background: #000;
}
.oempc-diagram-viewport:fullscreen .oempc-diagram-stage,
.oempc-diagram-viewport.oempc-fullscreen-fallback .oempc-diagram-stage { display: flex; align-items: center; justify-content: center; height: 100vh; }

/* Responsive */
.oempc-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 782px) {
	.oempc-container { padding: 16px 12px; }
	.oempc-page-title { font-size: 22px; }
	.oempc-vehicle-header { flex-direction: column; }
	.oempc-vehicle-hero-image { width: 100%; }
	.oempc-parts-table { min-width: 640px; }
	.oempc-diagram-viewport { max-height: 320px; }
	.oempc-diagram-controls { bottom: 6px; right: 6px; }
	.oempc-cv-table { min-width: 560px; }
	.oempc-cv-toolbar { flex-direction: column; align-items: stretch; }
	.oempc-cv-search { min-width: 0; width: 100%; }
	.oempc-search-box { max-width: 100%; }
}

/* Compatible vehicles tab (WooCommerce) */
.oempc-compatible-vehicles .oempc-cv-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.oempc-cv-search { padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 6px; min-width: 240px; }
.oempc-cv-count { color: #667085; font-size: 13px; }
.oempc-cv-table { width: 100%; border-collapse: collapse; }
.oempc-cv-table th, .oempc-cv-table td { padding: 8px 12px; border-bottom: 1px solid #eaecf0; text-align: left; font-size: 13px; }
.oempc-cv-table thead th { background: #f7f7f8; font-size: 11px; text-transform: uppercase; color: #667085; }
.oempc-cv-image-cell { width: 56px; }
.oempc-cv-image-cell img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; display: block; }
.oempc-cv-load-more { margin-top: 12px; }

/* "Your Vehicle" highlight in the Compatible Vehicles table */
.oempc-cv-row-yours { background: #eef9f1; }
.oempc-cv-yours-badge {
	display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px;
	background: #067647; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; vertical-align: middle;
}

/* Garage widget ([oempc_garage] shortcode) — collapsed button + panel */
.oempc-garage { position: relative; display: inline-block; max-width: 100%; font-family: inherit; }

.oempc-garage-toggle {
	display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 10px; border: none; cursor: pointer;
	background: linear-gradient(135deg, #1d2327, #2f363d); color: #fff; font-size: 15px; font-weight: 700;
	box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .12s ease, box-shadow .12s ease; max-width: 100%;
}
.oempc-garage-toggle:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.24); }
.oempc-garage-toggle-icon { display: flex; align-items: center; color: #ffb020; flex-shrink: 0; }
.oempc-garage-toggle-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; overflow: hidden; text-align: left; }
.oempc-garage-toggle-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #ffb020; font-weight: 700; }
.oempc-garage-toggle-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.oempc-garage-toggle-chevron { margin-left: 2px; font-size: 11px; transition: transform .15s ease; flex-shrink: 0; }
.oempc-garage-open .oempc-garage-toggle-chevron { transform: rotate(180deg); }

.oempc-garage-panel {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; width: 340px; max-width: 90vw;
	background: #fff; border-radius: 12px; border: 1px solid #eaecf0; box-shadow: 0 12px 32px rgba(0,0,0,.16);
	padding: 20px; animation: oempc-garage-pop .15s ease;
}
@keyframes oempc-garage-pop {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.oempc-garage-current {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; padding: 10px 14px;
	background: #eef9f1; border-radius: 8px; font-size: 13px;
}
.oempc-garage-current-label { color: #067647; font-weight: 600; }
.oempc-garage-remove-btn {
	margin-left: auto; background: none; border: none; color: #b42318; cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0;
}
.oempc-garage-replace-note { font-size: 12px; color: #98a2b3; margin: 0 0 16px; }

.oempc-garage-form { display: flex; flex-direction: column; gap: 14px; }
.oempc-garage-field label { display: block; font-size: 11px; font-weight: 700; color: #667085; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.oempc-garage-select {
	width: 100%; padding: 11px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font-size: 14px; background: #fff;
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23667085'%3E%3Cpath d='M5.25 7.5L10 12.25l4.75-4.75H5.25z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
.oempc-garage-select:disabled { background-color: #f7f7f8; color: #98a2b3; cursor: not-allowed; }
.oempc-garage-select:focus { outline: none; border-color: #1d2327; box-shadow: 0 0 0 3px rgba(29,35,39,.1); }
.oempc-garage-error { color: #b42318; font-size: 13px; margin: 12px 0 0; }

.oempc-garage-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.oempc-garage-btn {
	width: 100%; padding: 12px 18px; border-radius: 8px; border: none; font-size: 14px; font-weight: 700; cursor: pointer;
	transition: background .12s ease, transform .12s ease;
}
.oempc-garage-btn:disabled { opacity: .45; cursor: not-allowed; }
.oempc-garage-show-parts { background: #1d2327; color: #fff; }
.oempc-garage-show-parts:not(:disabled):hover { background: #000; }
.oempc-garage-add { background: #f0f0f1; color: #1d2327; }
.oempc-garage-add:not(:disabled):hover { background: #e2e2e3; }

@media (max-width: 480px) {
	.oempc-garage-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; max-height: 85vh; overflow-y: auto; border-radius: 16px 16px 0 0; }
	.oempc-garage-toggle-text { max-width: 140px; }
}

/* Product page fitment banner */
.oempc-fit-banner {
	display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: 14px;
}
.oempc-fit-yes { background: #eef9f1; color: #067647; border: 1px solid #b8e6c5; }
.oempc-fit-no { background: #fff8e6; color: #8a6100; border: 1px solid #f2dfa3; }
.oempc-fit-icon { font-weight: 700; font-size: 16px; }

/* Shop page "Show Matching Parts" filter notice */
.oempc-garage-shop-notice {
	background: #eef4fb; border: 1px solid #cfe3f7; color: #135e96; padding: 10px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 14px;
}
.oempc-garage-shop-notice a { margin-left: 8px; font-weight: 600; }
