/* Wolf Auto Parts Search — Shopify Theme Widget Styles */

/* ===== DESIGN TOKENS ===== */
:root {
  --wolf-gold: #f7941d;
  --wolf-gold-hover: #d97e0a;
  --wolf-gold-light: #fef7ed;
  --wolf-gold-bg: #fef0dd;
  --wolf-gold-warm: #fdf0d5;
  --wolf-blue: #1b3a6b;
  --wolf-amber: #d97706;
  --wolf-text: #333;
  --wolf-text-dark: #222;
  --wolf-text-body: #666;
  --wolf-text-muted: #999;
  --wolf-text-faint: #aaa;
  --wolf-border: #e5e5e5;
  --wolf-border-light: #ccc;
  --wolf-border-faint: #ddd;
  --wolf-bg: #fff;
  --wolf-bg-light: #f0f0f0;
  --wolf-bg-subtle: #f5f5f5;
  --wolf-bg-hover: #e0e0e0;
}

/* ===== FONT ===== */
@font-face {
  font-family: 'Inter';
  src: url('inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

[class^="wolf-"], [class*=" wolf-"] {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== RESET / BASE ===== */
.wolf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.6em 1.4em;
  border: none;
  border-radius: 4px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, opacity 0.15s ease;
  line-height: 1.4;
}

.wolf-btn:disabled,
.wolf-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.wolf-btn--primary {
  background: var(--wolf-gold);
  color: #fff;
}

.wolf-btn--primary:hover:not(:disabled) {
  background: var(--wolf-gold-hover);
}

.wolf-btn--secondary {
  background: var(--wolf-bg-subtle);
  color: var(--wolf-text);
  border: 1px solid var(--wolf-border-faint);
}

.wolf-btn--secondary:hover:not(:disabled) {
  background: var(--wolf-bg-hover);
}

.wolf-btn--ghost {
  background: transparent;
  color: var(--wolf-text);
  border: 1px solid var(--wolf-border-light);
}

.wolf-btn--ghost:hover:not(:disabled) {
  background: var(--wolf-bg-light);
}

/* ===== LOADING STATE ===== */
.wolf-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 2rem;
  color: var(--wolf-text-body);
  font-size: 1.5rem;
}

.wolf-loading::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid var(--wolf-border-light);
  border-top-color: var(--wolf-gold);
  border-radius: 50%;
  animation: wolf-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes wolf-spin {
  to { transform: rotate(360deg); }
}

/* ===== VEHICLE SELECTOR PANEL ===== */
.wolf-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wolf-panel-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.wolf-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 9001;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wolf-panel-overlay.is-open .wolf-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.wolf-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--wolf-bg-light);
}

.wolf-panel__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wolf-text-dark);
  margin: 0;
}

.wolf-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--wolf-text-muted);
  transition: color 0.12s;
  width: 28px;
  height: 28px;
}

.wolf-panel__close:hover {
  color: var(--wolf-text);
}

.wolf-panel__close svg {
  width: 100%;
  height: 100%;
}

.wolf-panel__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--wolf-bg-light);
  min-height: 44px;
}

.wolf-panel__crumb {
  background: var(--wolf-gold);
  color: #fff;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  transition: background 0.12s;
  white-space: nowrap;
  font-family: inherit;
}

.wolf-panel__crumb:hover {
  background: var(--wolf-gold-hover);
}

.wolf-panel__crumb-sep {
  color: var(--wolf-border-light);
  font-size: 14px;
  user-select: none;
}

.wolf-panel__crumb-current {
  font-weight: 600;
  color: var(--wolf-text);
  font-size: 13px;
}

.wolf-panel__body {
  padding: 1rem 1.5rem 1.5rem;
}

.wolf-panel__browse-all {
  display: block;
  width: 100%;
  background: var(--wolf-gold);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-bottom: 0.75rem;
  transition: background 0.12s;
  font-family: inherit;
}

.wolf-panel__browse-all:hover {
  background: var(--wolf-gold-hover);
}

.wolf-panel__divider {
  text-align: center;
  color: var(--wolf-text-muted);
  font-size: 12px;
  margin-bottom: 0.75rem;
}

.wolf-panel__search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--wolf-border-faint);
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 0.75rem;
  outline: none;
  box-sizing: border-box;
}

.wolf-panel__search:focus {
  border-color: var(--wolf-gold);
}

/* Part type instant search */
.wolf-panel__pt-search {
  position: relative;
  margin-bottom: 0.75rem;
}

.wolf-panel__pt-form {
  margin: 0;
  padding: 0;
}

.wolf-panel__pt-search .wolf-panel__search {
  margin-bottom: 0;
}

.wolf-panel__pt-results {
  border: 1px solid var(--wolf-bg-hover);
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #fff;
  max-height: 280px;
  overflow-y: auto;
}

.wolf-panel__pt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  border: none;
  border-bottom: 1px solid var(--wolf-bg-subtle);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--wolf-text);
  text-align: left;
  transition: background 0.1s;
}

.wolf-panel__pt-item:hover {
  background: var(--wolf-gold-light);
}

.wolf-panel__pt-item:last-child {
  border-bottom: none;
}

.wolf-panel__pt-item-name {
  font-weight: 500;
}

.wolf-panel__pt-item-count {
  color: var(--wolf-text-muted);
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.wolf-panel__pt-empty {
  padding: 12px 14px;
  color: var(--wolf-text-muted);
  font-size: 13px;
}

.wolf-panel__pt-loading {
  padding: 14px;
  color: var(--wolf-text-muted);
  font-size: 13px;
  text-align: center;
}

.wolf-panel__pt-more {
  padding: 8px 14px;
  color: var(--wolf-text-muted);
  font-size: 12px;
  font-style: italic;
}

.wolf-panel__pt-more--link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--wolf-bg-hover);
  cursor: pointer;
  font-style: normal;
  font-weight: 500;
  color: var(--wolf-gold);
  text-align: center;
}

.wolf-panel__pt-more--link:hover {
  background: var(--wolf-gold-light);
}

/* Master part search results */
.wolf-panel__part-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-bottom: 1px solid var(--wolf-bg-hover);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.wolf-panel__part-item:hover {
  background: var(--wolf-gold-light);
}

.wolf-panel__part-item:last-child {
  border-bottom: none;
}

.wolf-panel__part-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--wolf-bg-hover);
}

.wolf-panel__part-img--fallback {
  background: var(--wolf-bg-hover) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center/24px no-repeat;
}

.wolf-panel__part-info {
  flex: 1;
  min-width: 0;
}

.wolf-panel__part-title {
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wolf-panel__part-meta {
  font-size: 12px;
  color: var(--wolf-text-muted);
  margin-top: 2px;
}

.wolf-panel__part-right {
  flex-shrink: 0;
  text-align: right;
}

.wolf-panel__part-price {
  font-weight: 600;
  font-size: 13px;
}

.wolf-panel__part-avail {
  font-size: 11px;
  color: var(--wolf-text-muted);
}

.wolf-panel__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}

.wolf-panel__option {
  border: 1px solid var(--wolf-bg-hover);
  border-radius: 4px;
  background: #fafafa;
  padding: 6px 8px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
}

.wolf-panel__option:hover {
  background: var(--wolf-gold-light);
  border-color: var(--wolf-gold);
}

.wolf-panel__option-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--wolf-text);
}

.wolf-panel__option-count {
  font-size: 10px;
  color: var(--wolf-text-muted);
}

.wolf-panel__more {
  background: none;
  border: none;
  color: var(--wolf-amber);
  font-size: 12px;
  cursor: pointer;
  padding: 0.5rem 0;
  text-decoration: underline;
  grid-column: 1 / -1;
}

.wolf-panel__more:hover {
  color: #b45309;
}

.wolf-panel-garage {
  padding: 1rem 1.5rem 1.5rem;
}

.wolf-panel__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--wolf-text-body);
  gap: 0.5rem;
}

.wolf-panel__loading::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid var(--wolf-border-light);
  border-top-color: var(--wolf-gold);
  border-radius: 50%;
  animation: wolf-spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ===== PAGE TITLE ===== */
.wolf-page-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--wolf-blue);
  margin: 0 0 0.75rem 0;
}

/* ===== PARTS PAGE CONTAINER ===== */
.wolf-parts-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* ===== VEHICLE BAR (gold, like wolfautoparts.com) ===== */
.wolf-vehicle-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wolf-gold-warm);
  border: 2px solid var(--wolf-gold);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font-size: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.wolf-vehicle-bar__label {
  font-weight: 700;
  color: var(--wolf-blue);
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

.wolf-vehicle-bar__value {
  font-weight: 600;
  color: var(--wolf-text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wolf-vehicle-bar__btn {
  background: var(--wolf-gold);
  border: none;
  color: #fff;
  padding: 0.3em 0.9em;
  border-radius: 3px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.wolf-vehicle-bar__btn:hover {
  background: var(--wolf-gold-hover);
}

/* ===== FILTER HEADING ===== */
.wolf-filter-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wolf-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wolf-blue);
}

/* ===== SEARCH BAR ===== */
.wolf-search-bar {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.wolf-search-bar input[type="text"] {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--wolf-border-light);
  border-radius: 4px;
  font-size: 1.5rem;
  color: var(--wolf-text-dark);
  transition: border-color 0.15s;
  outline: none;
}

.wolf-search-bar input[type="text"]:focus {
  border-color: var(--wolf-blue);
  box-shadow: 0 0 0 2px rgba(27, 58, 107, 0.12);
}

.wolf-search-bar .wolf-btn {
  padding: 0.6rem 1.2rem;
  background: var(--wolf-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.wolf-search-bar .wolf-btn:hover {
  background: #132c54;
}

/* ===== LAYOUT: SIDEBAR + RESULTS ===== */
.wolf-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.wolf-sidebar {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.wolf-facet-group {
  margin-bottom: 1.25rem;
}

.wolf-facet-group:last-child {
  margin-bottom: 0;
}

.wolf-facet-group__label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--wolf-text);
  margin: 0;
  padding: 0.6rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  border-bottom: 1px solid #e8e8e8;
}

.wolf-facet-group__chevron {
  color: var(--wolf-text-muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.wolf-facet-group.is-collapsed .wolf-facet-group__chevron {
  transform: rotate(-90deg);
}

.wolf-facet-group__options {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wolf-facet-group.is-collapsed .wolf-facet-group__options {
  display: none;
}

.wolf-facet-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.4rem;
  color: #444;
  cursor: pointer;
  padding: 0.15rem 0;
}

.wolf-facet-option input[type="checkbox"] {
  accent-color: var(--wolf-gold);
  cursor: pointer;
}

.wolf-facet-option:hover {
  color: var(--wolf-gold);
}

.wolf-facet-option__count {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--wolf-text-faint);
}

.wolf-facet-search {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--wolf-border-faint);
  border-radius: 4px;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  outline: none;
}

.wolf-facet-search:focus {
  border-color: var(--wolf-gold);
}

.wolf-facet-toggle {
  background: none;
  border: none;
  color: var(--wolf-amber);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.3rem 0;
  text-decoration: underline;
}

.wolf-facet-toggle:hover {
  color: #b45309;
}

/* ===== CATEGORY TREE ===== */
.wolf-category-tree .wolf-facet-group__options {
  gap: 0;
}

.wolf-cat-node {
  border-bottom: 1px solid var(--wolf-bg-light);
}

.wolf-cat-node:last-child {
  border-bottom: none;
}

.wolf-cat-node__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  font-size: 1.4rem;
  color: var(--wolf-text);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}

.wolf-cat-node__row:hover {
  background: var(--wolf-gold-light);
}

.wolf-cat-node__row.is-active {
  background: var(--wolf-gold-bg);
}

.wolf-cat-node__row.is-active .wolf-cat-node__name {
  font-weight: 600;
  color: var(--wolf-amber);
}

.wolf-cat-node__toggle {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wolf-text-muted);
  transition: transform 0.2s, color 0.15s;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

.wolf-cat-node__toggle:hover {
  color: var(--wolf-text-body);
  background: var(--wolf-bg-light);
}

.wolf-cat-node__toggle.is-expanded {
  transform: rotate(90deg);
  color: var(--wolf-amber);
}

.wolf-cat-node__name {
  cursor: pointer;
  user-select: none;
  color: inherit;
  text-decoration: none;
  line-height: 1.3;
}

.wolf-cat-node__count {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--wolf-text-faint);
  flex-shrink: 0;
}

.wolf-cat-node__children {
  padding-left: 1.25rem;
  border-left: 2px solid var(--wolf-bg-light);
  margin-left: 0.55rem;
}

.wolf-cat-node__children.is-hidden {
  display: none;
}

.wolf-cat-node__row--child {
  font-size: 1.3rem;
  padding: 0.35rem 0.25rem;
  color: #555;
}

.wolf-cat-node__row--child:hover {
  background: var(--wolf-gold-light);
}

.wolf-cat-node__row--child.is-active {
  background: var(--wolf-gold-bg);
}

.wolf-cat-node__row--child.is-active .wolf-cat-node__name {
  font-weight: 600;
  color: var(--wolf-amber);
}

/* ===== RESULTS GRID ===== */
.wolf-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.wolf-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wolf-results-count {
  font-size: 1.4rem;
  color: var(--wolf-text-body);
}

.wolf-results-sort {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.4rem;
  color: #444;
}

.wolf-results-sort,
.wolf-results-sort select {
  padding: 0.3em 0.6em;
  border: 1px solid var(--wolf-border-light);
  border-radius: 4px;
  font-size: 1.4rem;
  background: #fff;
  cursor: pointer;
  color: var(--wolf-text);
}

.wolf-card__oem {
  display: block;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--wolf-text-body);
  margin-top: 0.15rem;
}

/* ===== RESULT CARD ===== */
.wolf-card {
  background: #fff;
  border: 1px solid var(--wolf-bg-hover);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
}

.wolf-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.wolf-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wolf-bg-subtle);
  position: relative;
}

.wolf-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wolf-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wolf-border-light);
  font-size: 3rem;
}

.wolf-card__body {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wolf-card__title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wolf-card__price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wolf-blue);
}

.wolf-card__meta {
  font-size: 1.2rem;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.wolf-card__badge {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wolf-card__badge--condition {
  background: #e8f5e9;
  color: #2e7d32;
}

.wolf-card__badge--oem {
  background: #e3f2fd;
  color: #1565c0;
}

.wolf-card__badge--side {
  background: #fce4ec;
  color: #ad1457;
}

.wolf-card__sku {
  font-size: 1.2rem;
  color: var(--wolf-text-faint);
  margin-top: auto;
}

/* ===== FITMENT MISMATCH ===== */
.wolf-card--mismatch {
  border-color: #f0c040;
  background: #fffde7;
}

.wolf-card--mismatch .wolf-card__title {
  color: #555;
}

.wolf-mismatch-banner {
  background: #fff3cd;
  border: 1px solid #f0c040;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 1.3rem;
  color: #7a5a00;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.wolf-mismatch-banner::before {
  content: "⚠";
  flex-shrink: 0;
}

/* ===== PAGINATION ===== */
.wolf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.5rem 0 0.5rem;
  flex-wrap: wrap;
}

.wolf-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  height: 3.2rem;
  padding: 0 0.5rem;
  border: 1px solid var(--wolf-border-faint);
  border-radius: 3px;
  background: #fff;
  font-size: 1.4rem;
  color: var(--wolf-blue);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  user-select: none;
}

.wolf-page:hover {
  background: #f0f4fa;
  border-color: var(--wolf-blue);
}

.wolf-page--current {
  background: var(--wolf-blue);
  border-color: var(--wolf-blue);
  color: #fff;
  font-weight: 700;
  cursor: default;
}

.wolf-page--current:hover {
  background: var(--wolf-blue);
}

.wolf-page--prev,
.wolf-page--next {
  padding: 0 0.75rem;
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wolf-page--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.wolf-page--ellipsis {
  border: none;
  background: none;
  color: var(--wolf-text-faint);
  cursor: default;
  min-width: 1.5rem;
}

.wolf-page--ellipsis:hover {
  background: none;
  border: none;
}

/* ===== HOMEPAGE CTA SECTION ===== */
.wolf-cta {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, var(--wolf-blue) 0%, #0f2340 100%);
  color: #fff;
}

.wolf-cta__heading {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.wolf-cta__heading span {
  color: var(--wolf-gold);
}

.wolf-cta__subheading {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  color: #bbb;
  margin: 0 0 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.wolf-cta__btn {
  font-size: 1.7rem;
  padding: 0.85em 2.2em;
  background: var(--wolf-gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  letter-spacing: 0.02em;
}

.wolf-cta__btn:hover {
  background: var(--wolf-gold-hover);
  transform: translateY(-1px);
}

.wolf-cta__note {
  margin: 1.2rem 0 0;
  font-size: 1.5rem;
  color: #555;
}

/* ===== HEADER NAV LINK ===== */
.wolf-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  font-weight: 600;
  color: inherit;
  transition: color 0.15s;
}

.wolf-header-link:hover {
  color: var(--wolf-gold);
}

.wolf-header-link__icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ===== TURNSTILE ===== */
.wolf-turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
}

/* ===== EMPTY STATE ===== */
.wolf-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}

.wolf-empty__icon {
  font-size: 4.8rem;
  margin-bottom: 0.75rem;
}

.wolf-empty__title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.4rem;
}

.wolf-empty__msg {
  font-size: 1.4rem;
}

/* ===== MOBILE FILTER DRAWER ===== */
.wolf-mobile-filter-controls {
  display: none;
}

.wolf-mobile-filter-btn {
  display: none;
}

.wolf-filter-drawer-backdrop {
  display: none;
}

.wolf-mobile-filter-header {
  display: none;
}

/* ===== ACTIVE FILTER CHIPS ===== */
.wolf-active-chips {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.wolf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  background: var(--wolf-gold-light, #fef3c7);
  border: 1px solid var(--wolf-gold, #d4a017);
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--wolf-text, #333);
  cursor: pointer;
  white-space: nowrap;
}

.wolf-chip__x {
  font-size: 1.1rem;
  font-weight: 700;
  color: #888;
  line-height: 1;
}

.wolf-chip:hover .wolf-chip__x {
  color: #333;
}

.wolf-chip--clear {
  background: none;
  border-color: var(--wolf-border-faint, #ddd);
  color: var(--wolf-text-muted, #888);
}

/* ===== BACK TO TOP ===== */
.wolf-back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wolf-blue, #132c54);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  align-items: center;
  justify-content: center;
}

.wolf-back-to-top.is-visible {
  display: flex;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .wolf-content {
    grid-template-columns: 1fr;
  }

  /* --- Filter drawer --- */
  .wolf-sidebar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1001;
    background: #fff;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
    padding: 0 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
  }

  .wolf-sidebar.is-drawer-open {
    display: block;
    transform: translateY(0);
  }

  .wolf-mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    border-bottom: 1px solid var(--wolf-border-faint, #eee);
    margin-bottom: 0.75rem;
  }

  .wolf-mobile-filter-header__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wolf-text-dark, #111);
  }

  .wolf-mobile-filter-header__close {
    background: none;
    border: none;
    font-size: 2.4rem;
    color: var(--wolf-text-muted, #888);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
  }

  .wolf-filter-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.4);
  }

  .wolf-filter-drawer-backdrop.is-open {
    display: block;
  }

  .wolf-mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--wolf-border, #ccc);
    border-radius: 6px;
    background: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wolf-text, #333);
    cursor: pointer;
  }

  .wolf-mobile-filter-btn__icon {
    font-size: 1.5rem;
  }

  .wolf-mobile-filter-btn__count {
    background: var(--wolf-gold, #d4a017);
    color: #fff;
    border-radius: 10px;
    padding: 0.1rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 1.6rem;
    text-align: center;
  }

  /* --- Active filter chips (show on mobile) --- */
  .wolf-active-chips {
    display: flex;
  }

  /* --- Show mobile filter controls --- */
  .wolf-mobile-filter-controls {
    display: block;
  }

  /* --- Hide in-page search bar on mobile --- */
  .wolf-search-bar {
    display: none;
  }

  /* --- Results header: stack --- */
  .wolf-results-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .wolf-results-sort,
  .wolf-results-sort select {
    width: 100%;
    padding: 0.5em 0.6em;
    font-size: 1.5rem;
  }

  /* --- Results grid --- */
  .wolf-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- Touch targets: facets --- */
  .wolf-facet-option {
    padding: 0.5rem 0;
    min-height: 44px;
  }

  .wolf-facet-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .wolf-facet-group__label {
    min-height: 44px;
    padding: 0.75rem 0;
  }

  .wolf-cat-node__row {
    min-height: 44px;
    padding: 0.6rem 0.25rem;
  }

  /* --- Touch targets: pagination --- */
  .wolf-page {
    min-width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }

  .wolf-page--prev,
  .wolf-page--next {
    padding: 0 1rem;
    font-size: 1.4rem;
  }

  /* --- Vehicle bar: more prominent --- */
  .wolf-vehicle-bar {
    font-size: 1.4rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--wolf-gold, #d4a017);
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }

  .wolf-vehicle-bar__btn {
    font-size: 1.4rem;
    padding: 0.4rem 1rem;
    min-height: 44px;
  }

  .wolf-cta {
    padding: 2.5rem 1rem;
  }

  /* --- Card title on very small cards --- */
  .wolf-card__title {
    font-size: 1.3rem;
  }

  .wolf-card__price {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .wolf-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .wolf-card__body {
    padding: 0.5rem;
  }

  .wolf-page-title {
    font-size: 1.8rem;
  }

  /* Hide page numbers, keep prev/next only */
  .wolf-page:not(.wolf-page--prev):not(.wolf-page--next):not(.wolf-page--current) {
    display: none;
  }

  .wolf-page--ellipsis {
    display: none;
  }
}

@media (max-width: 1023px) {
  .wolf-panel__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .wolf-panel-overlay.is-open {
    overflow: hidden;
  }

  .wolf-panel,
  .wolf-panel-overlay.is-open .wolf-panel {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    top: 0;
    left: 0;
    transform: none !important;
    border-radius: 0;
    overflow: hidden !important;
  }

  .wolf-panel__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0.75rem 1rem;
    background: var(--wolf-blue);
    color: #fff;
    border-bottom: none;
  }

  .wolf-panel__scroll-area {
    position: absolute;
    top: 49px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: scroll !important;
    overscroll-behavior: contain;
  }

  .wolf-panel__grid {
    grid-template-columns: 1fr;
  }

  .wolf-panel__title {
    color: #fff;
    font-size: 1.2rem;
  }

  .wolf-panel__close {
    color: rgba(255, 255, 255, 0.7);
  }

  .wolf-panel__close:hover {
    color: #fff;
  }

  .wolf-panel__breadcrumb {
    padding: 0.5rem 1rem;
    background: var(--wolf-gold-light);
    border-bottom: 2px solid var(--wolf-gold);
  }

  .wolf-panel__body {
    padding: 0.75rem 1rem 1.25rem;
    background: var(--wolf-bg-subtle);
  }

  .wolf-panel__option {
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
  }

  .wolf-panel__crumb-current {
    display: none;
  }
}

/* ============================================
   My Garage
   ============================================ */

/* --- Header Nav Layout --- */
.wolf-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__icons .wolf-header-nav {
  margin-right: 1rem;
}

.header__icons .wolf-header-link,
.header__icons .wolf-garage-btn {
  line-height: 1;
}

/* --- Garage Button --- */
.wolf-garage-header {
  position: relative;
}

.wolf-garage-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  color: inherit;
  display: flex;
  align-items: center;
}

.wolf-garage-btn__icon {
  width: 22px;
  height: 22px;
}

.wolf-garage-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #222;
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 600;
}

/* --- Garage Dropdown --- */
.wolf-garage-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--wolf-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 9998;
  margin-top: 8px;
}

.wolf-garage-dropdown.is-open {
  display: block;
}

.wolf-garage-list {
  padding: 8px;
}

.wolf-garage-empty {
  text-align: center;
  padding: 20px 12px;
  color: var(--wolf-text-muted);
}

.wolf-garage-empty p {
  margin: 0 0 12px;
}

/* --- Garage Item --- */
.wolf-garage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--wolf-bg-light);
  gap: 8px;
}

.wolf-garage-item:last-of-type {
  border-bottom: none;
}

.wolf-garage-item--active {
  background: #f7f7f7;
}

.wolf-garage-item-label {
  font-size: 13px;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wolf-garage-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wolf-garage-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--wolf-text-muted);
  padding: 0 4px;
  line-height: 1;
}

.wolf-garage-remove:hover {
  color: #c00;
}

.wolf-garage-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--wolf-bg-light);
  text-align: center;
}

.wolf-garage-add-link {
  font-size: 13px;
  color: var(--wolf-text-body);
  text-decoration: none;
}

.wolf-garage-add-link:hover {
  color: var(--wolf-text-dark);
}

/* --- Small Button Variant --- */
.wolf-btn--small {
  padding: 4px 10px;
  font-size: 12px;
}

/* --- Active Vehicle Indicator --- */
.wolf-active-vehicle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--wolf-text);
  cursor: pointer;
}

.wolf-active-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.wolf-active-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--wolf-text-muted);
  padding: 0 2px;
  line-height: 1;
}

.wolf-active-clear:hover {
  color: #c00;
}

/* --- Sold Out Product State --- */
.wolf-sold-out-notice {
  margin-top: 1.6rem;
  padding: 2.4rem 2rem;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 1.2rem;
  background: rgba(18, 18, 18, 0.03);
  text-align: center;
}

.wolf-sold-out-notice h2 {
  margin: 0 0 0.8rem;
  color: var(--wolf-text-dark);
  font-size: 2.2rem;
}

.wolf-sold-out-notice p {
  margin: 0 0 1.6rem;
  color: var(--wolf-text-body);
}

.wolf-sold-out-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Popup Garage Section --- */
.wolf-garage-popup-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--wolf-text-body);
  margin: 0 0 8px;
}

.wolf-garage-popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--wolf-border);
  border-radius: 4px;
  margin-bottom: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.wolf-garage-popup-item:hover {
  background: #f7f7f7;
}

.wolf-garage-popup-label {
  flex: 1;
  min-width: 0;
}

.wolf-garage-popup-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--wolf-text-muted);
  padding: 0 2px;
  flex-shrink: 0;
}

.wolf-garage-popup-remove:hover {
  color: #c00;
}

.wolf-garage-popup-divider {
  text-align: center;
  color: var(--wolf-text-muted);
  font-size: 13px;
  padding: 12px 0;
  position: relative;
}

.wolf-garage-popup-new-btn {
  display: block;
  width: 100%;
  background: none;
  border: 2px dashed var(--wolf-border);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--wolf-gold);
  padding: 12px 16px;
  margin-top: 4px;
  transition: border-color 0.15s, background 0.15s;
}

.wolf-garage-popup-new-btn:hover {
  color: var(--wolf-gold-hover);
  border-color: var(--wolf-gold);
  background: var(--wolf-gold-light);
}

@media (max-width: 767px) {
  .wolf-garage-popup-title {
    font-size: 12px;
    margin: 0 0 2px;
    color: var(--wolf-gold-hover);
    font-weight: 700;
  }

  .wolf-garage-popup-item {
    border: 1px solid var(--wolf-border);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    gap: 10px;
  }

  .wolf-garage-popup-use {
    display: none;
  }

  .wolf-garage-popup-remove {
    font-size: 18px;
  }

  .wolf-garage-popup-new-btn {
    font-size: 16px;
    padding: 14px 16px;
    border: 2px dashed var(--wolf-border);
    border-radius: 6px;
    margin-top: 4px;
  }

  .wolf-garage-popup-new-btn:hover {
    border-color: var(--wolf-gold);
    background: var(--wolf-gold-light);
  }
}

/* --- Save Prompt --- */
.wolf-save-prompt {
  text-align: center;
  padding: 20px;
}

.wolf-save-prompt h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.wolf-save-prompt p {
  color: var(--wolf-text-body);
  margin: 0 0 20px;
}

.wolf-save-prompt-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .wolf-active-label {
    max-width: 120px;
  }
  .wolf-garage-dropdown {
    width: 280px;
  }
}

@media (max-width: 989px) {
  .header__icons .wolf-header-nav {
    gap: 8px;
    margin-right: 0.4rem;
  }

  .header__icons .wolf-header-link {
    font-size: 0;
  }

  .header__icons .wolf-header-link__icon {
    width: 2rem;
    height: 2rem;
  }

  .header__icons .wolf-active-vehicle {
    display: none !important;
  }
}

/* ============================================
   Master Part Page — WolfAutoParts.com Style
   ============================================ */

/* --- Page Container (match theme content width) --- */
.wolf-mp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Two-Column Top Layout --- */
.wolf-mp-top {
  display: flex;
  gap: 40px;
  padding: 24px 0;
}

.wolf-mp-gallery-col {
  flex: 0 0 400px;
  max-width: 400px;
}

.wolf-mp-info-col {
  flex: 1;
  min-width: 0;
}

/* --- Title & OEM --- */
.wolf-mp-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.wolf-mp-oem {
  font-size: 14px;
  color: var(--wolf-text-body);
  margin: 0 0 16px;
}

/* --- Photo Gallery --- */
.wolf-mp-gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--wolf-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wolf-border);
}

.wolf-mp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wolf-mp-no-image {
  color: var(--wolf-text-muted);
  font-size: 14px;
}

.wolf-mp-gallery-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
}

.wolf-mp-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--wolf-border);
  cursor: pointer;
  flex-shrink: 0;
}

.wolf-mp-thumb--active {
  border-color: var(--wolf-text-dark);
}

/* --- Compatibility Checker --- */
.wolf-mp-compat {
  padding: 12px 16px;
  margin: 0 0 16px;
  border-radius: 6px;
  background: #fff8e1;
  border: 1px solid #ffe082;
}

.wolf-mp-compat-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--wolf-text-body);
}

.wolf-compat-yes {
  color: #2e7d32;
  font-weight: 600;
  font-size: 15px;
}

.wolf-compat-no {
  color: #e65100;
  font-weight: 600;
  font-size: 15px;
}

.wolf-compat-change {
  font-size: 13px;
  font-weight: 400;
  color: #1a73e8;
  text-decoration: underline;
  margin-left: 8px;
  cursor: pointer;
}

.wolf-compat-change:hover {
  color: #0d47a1;
}

/* --- SKU List (rows like wolfautoparts.com) --- */
.wolf-mp-stock-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--wolf-text);
  margin-bottom: 8px;
}

.wolf-mp-sku-list {
  margin-bottom: 12px;
}

.wolf-mp-sku-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--wolf-border);
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.wolf-mp-sku-row:hover {
  border-color: #bbb;
}

.wolf-mp-sku-row--selected {
  border-color: #1a73e8;
  background: #f0f7ff;
}

/* --- Radio Indicator --- */
.wolf-mp-sku-radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}

.wolf-mp-sku-row--selected .wolf-mp-sku-radio {
  border-color: #1a73e8;
}

.wolf-mp-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}

.wolf-mp-sku-row--selected .wolf-mp-radio-dot {
  background: #1a73e8;
}

/* --- SKU Number --- */
.wolf-mp-sku-number {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.wolf-mp-sku-thumb {
  width: 56px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--wolf-bg-subtle);
}

.wolf-mp-sku-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wolf-mp-sku-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wolf-border-light);
}

.wolf-mp-sku-info {
  flex: 1;
  min-width: 0;
}

.wolf-mp-sku-desc strong {
  font-size: 14px;
  display: block;
}

.wolf-mp-sku-subdesc {
  font-size: 12px;
  color: #888;
  font-style: italic;
}

.wolf-mp-sku-notes {
  font-size: 12px;
  color: var(--wolf-text-body);
  margin-top: 2px;
}

.wolf-mp-sku-price {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.wolf-mp-sku-warranty {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
  text-align: right;
}

/* --- Color Selector --- */
.wolf-mp-color-selector {
  margin-bottom: 12px;
}

.wolf-mp-color-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--wolf-text);
  margin-bottom: 6px;
}

.wolf-mp-color-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wolf-mp-color-pill {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--wolf-border);
  border-radius: 20px;
  background: #fff;
  color: var(--wolf-text-body);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.wolf-mp-color-pill:hover {
  border-color: #bbb;
  background: #f8f8f8;
}

.wolf-mp-color-pill--active {
  border-color: #1a73e8;
  background: #f0f7ff;
  color: #1a73e8;
  font-weight: 600;
}

/* --- Hidden SKU Rows --- */
.wolf-mp-sku-row--hidden,
.wolf-mp-sku-row--color-hidden {
  display: none;
}

.wolf-mp-show-all {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  background: none;
  border: 1px dashed var(--wolf-border);
  border-radius: 6px;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.wolf-mp-show-all:hover {
  background: #f0f7ff;
}

/* --- Purchase Bar (selected SKU + Add to Cart) --- */
.wolf-mp-purchase {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #f8fafb;
  border: 1px solid var(--wolf-border);
  border-radius: 6px;
}

.wolf-mp-purchase-details {
  flex: 1;
  min-width: 0;
}

.wolf-mp-purchase-price {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--wolf-text-dark, #1a1a1a);
  line-height: 1.2;
}

.wolf-mp-purchase-meta {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.wolf-mp-btn-cart {
  background: #1a73e8;
  color: #fff;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.wolf-mp-btn-cart:hover {
  background: #1557b0;
}

.wolf-mp-btn-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Description --- */
.wolf-mp-description {
  padding: 24px 0;
  border-top: 1px solid var(--wolf-border);
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.wolf-mp-description p {
  margin: 0;
}

/* --- Tabs --- */
.wolf-mp-tabs {
  border-top: 1px solid var(--wolf-border);
  margin-top: 8px;
}

.wolf-mp-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--wolf-border);
}

.wolf-mp-tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wolf-text-body);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.wolf-mp-tab-btn:hover {
  color: var(--wolf-text-dark);
}

.wolf-mp-tab-btn--active {
  color: var(--wolf-text-dark);
  font-weight: 600;
  border-bottom-color: var(--wolf-text-dark);
}

.wolf-mp-tab-panel {
  padding: 20px 0;
}

.wolf-mp-tab-panel h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}

/* --- Info Table (More Information tab) --- */
.wolf-mp-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.wolf-mp-info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--wolf-bg-light);
  vertical-align: top;
}

.wolf-mp-info-label {
  font-weight: 600;
  color: var(--wolf-text);
  width: 200px;
}

/* --- Fitment Table (Compatible Vehicles tab) --- */
.wolf-mp-fitment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wolf-mp-fitment-table th,
.wolf-mp-fitment-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--wolf-bg-light);
}

.wolf-mp-fitment-table th {
  font-weight: 600;
  color: var(--wolf-text-body);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  background: #fafafa;
}

.wolf-mp-fitment-table tbody tr:hover {
  background: #f8f8f8;
}

/* --- Related Products --- */
.wolf-mp-related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--wolf-border);
}

.wolf-mp-related h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

/* --- Placeholder --- */
.wolf-mp-placeholder {
  color: var(--wolf-text-muted);
  font-style: italic;
  font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .wolf-mp-top {
    flex-direction: column;
    gap: 20px;
  }
  .wolf-mp-gallery-col {
    flex: none;
    max-width: 100%;
  }
  .wolf-mp-btn-cart {
    width: 100%;
    text-align: center;
  }
  .wolf-mp-tab-nav {
    overflow-x: auto;
  }
  .wolf-mp-info-label {
    width: 140px;
  }
}

/* --- Master Part Skeleton --- */
.wolf-mp-skeleton-box {
  background: var(--wolf-bg-light);
  border-radius: 6px;
}

.wolf-mp-skeleton-row {
  height: 68px;
  border-radius: 6px;
  background: var(--wolf-bg-light);
  margin-bottom: 6px;
}

.wolf-mp-skeleton-text {
  height: 16px;
  border-radius: 4px;
  background: var(--wolf-bg-light);
  margin-bottom: 8px;
}

.wolf-mp-skeleton-text--wide { width: 80%; }
.wolf-mp-skeleton-text--medium { width: 50%; }
.wolf-mp-skeleton-text--narrow { width: 30%; }

.wolf-mp-skeleton-pulse {
  animation: wolf-skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes wolf-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.wolf-mp-error {
  padding: 40px 20px;
  text-align: center;
  color: var(--wolf-text-body);
}

.wolf-mp-error button {
  margin-top: 12px;
}

/* ===== HEADER SEARCH — VEHICLE CONTEXT ===== */
.wolf-search-vehicle-context {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  margin-top: 0.5em;
  background: var(--wolf-gold-warm);
  border: 1px solid var(--wolf-gold);
  border-radius: 4px;
  font-size: 1.4rem;
  color: var(--wolf-blue);
}

.wolf-search-vehicle-label {
  flex: 1;
}

.wolf-search-vehicle-clear {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: var(--wolf-text-body);
  padding: 0 0.25em;
  line-height: 1;
}

.wolf-search-vehicle-clear:hover {
  color: var(--wolf-gold-hover);
}

/* --- Lightbox --- */
.wolf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wolf-lightbox--visible { opacity: 1; }

.wolf-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-select: none;
}

.wolf-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  z-index: 1;
}
.wolf-lightbox-close:hover { color: #ccc; }

.wolf-lightbox-prev,
.wolf-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 50%;
  line-height: 1;
  z-index: 1;
}
.wolf-lightbox-prev { left: 16px; }
.wolf-lightbox-next { right: 16px; }
.wolf-lightbox-prev:hover,
.wolf-lightbox-next:hover { background: rgba(255, 255, 255, 0.3); }

.wolf-lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.wolf-mp-gallery-main { cursor: zoom-in; }
