header.masthead_parts {
  padding-top: 0rem;
  padding-bottom: 0rem;
  text-align: center;
  background-color: #212529;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
  height: 4.5rem;
}

/*Ilari, tyhjä tila sisällön yläpuolella */
.page-section-parts {
  padding: 25rem 0;
}

.part-item {
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.part-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-left-color: #0056b3;
}

.part-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.part-details {
    color: #34495e;
    font-size: 0.95rem;
    line-height: 1.5;
}

.part-application {
    display: inline-block;
    background-color: #e8f4fd;
    color: #0066cc;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 5px;
    margin-right: 5px;
}

.brand-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 5px;
}

.bmw-badge {
    background-color: #0066b1;
    color: white;
}

.vag-badge {
    background-color: #1f1f1f;
    color: white;
}

.mercedes-badge {
    background-color: #00adef;
    color: white;
}

.porsche-badge {
    background-color: #b12b2b;
    color: white;
}

.bosch-badge {
    background-color: #e2001a;
    color: white;
}

/* Animoidaan suodatusta */
.tuote-item {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.search-container {
    position: relative;
}

.search-container::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

#filterInput {
    padding-right: 35px;
}

.gap-2 {
    gap: 0.5rem;
}

.hover-badge {
    transition: all 0.3s ease;
    display: inline-block;
}

.hover-badge:hover {
    background-color: #0b5ed7 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hover-badge:hover .fa-arrow-right {
    transform: translateX(3px);
}

.fa-arrow-right {
    transition: transform 0.3s ease;
}

img.featured-image {
    /* Näytä kuva normaalisti */
    display: inline-block;
}

/* Piilota rikkinäiset kuvat */
img.featured-image:not([src]):not([srcset]),
img.featured-image[src=""],
img.featured-image:not([src*="/"]) {
    display: none !important;
}