/* ==========================================
   Product Categories Grid
========================================== */

.scpc-grid {
    display: grid;
    gap: 20px;
}

.scpc-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.scpc-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.scpc-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .scpc-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 568px) {
    .scpc-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.scpc-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.scpc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.scpc-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    text-decoration: none;
}

@media (max-width: 568px) {
    .scpc-card a {
        padding: 1.5rem;
    }
}

.scpc-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.scpc-card img {
    width: 70%;
    height: auto;
    display: block;
}

@media (max-width: 568px) {
    .scpc-card img {
        width: 100%;
    }
}

.scpc-card-info {
    margin-top: auto;
}

.scpc-card .scpc-card-info h3 {
    margin: 12px 0 4px;
    font-size: 18px;
    text-align: center;
}

.scpc-card:hover .scpc-card-info h3 {
    color: #000;
}

.scpc-count {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}


/* ==========================================
   Vehicle Filter
========================================== */

.filter-container {
    width: 100%;
}

.filter-row {
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-row.shop-filter .filter-group {
    flex-direction: column;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    flex-grow: 1;
    min-width: 150px;
    width: auto;

    padding: 12px 16px;

    font-size: 15px;
    color: #495057;

    background-color: #fff;

    border: 1px solid #e9ecef;
    border-radius: 8px;

    cursor: pointer;

    transition: all .2s ease;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.filter-select:focus {
    outline: none;
    border-color: #ef233c;
}

.filter-select:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.filter-row.shop-filter .filter-select {
    width: 100%;
}

.filter-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 24px;

    background-color: #ef233c !important;
    color: #fff !important;

    border: none;
    border-radius: 8px;

    font-weight: 500;

    cursor: pointer;

    transition: all .2s ease;
}

.filter-search-button:hover {
    opacity: .9;
}

.filter-search-button svg {
    flex-shrink: 0;
}

.filter-row.shop-filter .filter-search-button {
    width: 100%;
}

/* ==========================================
   Mobile
========================================== */

@media (max-width: 768px) {

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .filter-search-button {
        width: 100%;
    }
}

/* ==========================================
   Blog Vehicle Filter ([blog_vehicle_filter])
========================================== */

.sigmaBodyParts-auto-parts-search,
.sigmaBodyParts-auto-parts-search *,
.sigmaBodyParts-auto-parts-search *::before,
.sigmaBodyParts-auto-parts-search *::after {
    box-sizing: border-box;
}

.sigmaBodyParts-auto-parts-search {
    width: 100%;
    padding: 4px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ff2540 0%, #ff3030 30%, #ff4d0b 70%, #ff7200 100%);
}

.sigmaBodyParts-search-content {
    width: 100%;
    padding: 38px 40px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f72740 0%, #ff2d2d 35%, #ff4a0a 72%, #ff7200 100%);
    color: #ffffff;
}

.sigmaBodyParts-search-content h2 {
    margin: 0 0 18px;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.sigmaBodyParts-search-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.sigmaBodyParts-divider {
    width: 100%;
    height: 1px;
    margin: 33px 0 37px;
    background: rgba(255, 255, 255, 0.25);
}

.sigmaBodyParts-auto-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.sigmaBodyParts-select-wrapper {
    position: relative;
    width: 100%;
    flex: 1 1 180px;
}

.sigmaBodyParts-select-wrapper::after {
    content: "";
    position: absolute;
    right: 17px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #555;
    border-bottom: 1.5px solid #555;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.sigmaBodyParts-select-wrapper .filter-select {
    width: 100%;
    height: 42px;
    padding: 0 45px 0 17px;
    margin: 0;
    border: none;
    outline: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    background-image: none;
    color: #666;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sigmaBodyParts-select-wrapper .filter-select:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.sigmaBodyParts-search-button {
    flex: 1 1 100%;
    width: 100%;
    height: 44px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 8px;
    background: #050505 !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.sigmaBodyParts-search-button:hover {
    background: #151515 !important;
    transform: translateY(-1px);
}

.sigmaBodyParts-search-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sigmaBodyParts-select-wrapper {
        flex: 1 1 100%;
    }
}