@media (max-width: 1200px) {
  .content-layout {
    width: 100%;
    flex-direction: column;
  }

  .content-main {
    width: 100%;
  }

  .marketplace-sidebar {
    width: 100%;
    position: static;
    margin: 0 0 16px;
  }

  .sidebar-body {
    display: flex;
    flex-direction: column;
  }

  .sb-card {
    border: none;
    border-left: 3px solid var(--sb-color, transparent);
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
  }

  .marketplace-sidebar {
    border-radius: 0;
  }

  .marketplace-group {
    display: inline-block;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .vehicle-specs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem 2.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .main {
    max-width: 100%;
    padding: 1rem 0 2rem;
  }

  .parts-section {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .marketplace-sidebar {
    border-radius: 0;
  }

  .sidebar-header {
    border-radius: 0;
  }

  .vehicle-card {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .empty-state {
    padding: 5rem 1rem;
  }

  .search-container {
    flex-direction: column;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 12px;
  }

  .search-container input {
    width: 100% !important;
    height: 60px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0 20px;
  }

  .search-container button {
    width: 100% !important;
    height: 60px;
    border-radius: 12px;
  }

  .categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 10px;
    background: #fff;
  }

  .category-btn {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 12px;
    border-radius: 10px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
  }

  .cat-icon-box {
    width: 24px;
    height: 24px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .cat-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .cat-label {
    font-size: 9px;
    text-align: left;
    letter-spacing: 0.5px;
  }

  .parts-list {
    padding: 1.5rem;
  }

  .aftermarket-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-main-info {
    max-width: none;
  }
  .vehicle-card-title {
    font-size: 16px;
    white-space: normal;
    word-break: break-word;
  }

  .vehicle-spec {
    padding: 12px 16px;
  }

  .sb-card:last-of-type {
    border-bottom: none;
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  .vehicle-specs { grid-template-columns: 1fr; }
  .vehicle-card-header { flex-direction: column; align-items: stretch; gap: 1rem; }
  .header-main-info { flex-direction: column; align-items: flex-start; gap: 8px; }
  
  header { margin: 1rem; }
  .hero { padding: 3rem 1.5rem; }
  .hero-title { font-size: 42px; margin-bottom: 1.5rem; }
   .search-row { flex-direction: column; min-height: auto; gap: 10px; }
   .manual-row { grid-template-columns: 1fr; }
   .vin-input { 
    border-radius: 8px; 
    border: 2px solid #000; 
    width: 100%; 
    text-align: center;
    min-height: 54px;
  }
  .lookup-btn { 
    border-radius: 8px; 
    width: 100%; 
    min-height: 54px;
  }
  .main { padding: 0.5rem 0 1.5rem; }
  .vehicle-specs { grid-template-columns: 1fr; }
  .vehicle-card-header { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 1.25rem; 
    padding: 1.5rem;
  }
  .header-main-info { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .vehicle-spec { padding: 12px 16px; min-height: 60px; }
  .spec-value { font-size: 13px; }
}

@media (max-width: 480px) {
  header {
    padding: 1rem 1.5rem;
  }

  .header-right {
    gap: 8px;
  }

  .lang-btn {
    padding: 4px 10px;
    font-size: 11px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .category-btn {
    padding: 1rem 0.5rem;
  }

  .cat-label {
    font-size: 10px;
  }

  .oem-value {
    font-size: 24px;
  }

  .aftermarket-grid {
    grid-template-columns: 1fr;
  }
}
