body.homepage {
    background-position: center top;
    /* background: radial-gradient(circle at 70% 20%, #17bfae 0%, #004d4f 35%, #002d2f 100%); */
}
.select-part-page {
    font-family: 'Roboto', sans-serif;
    /* background:
      radial-gradient(120% 30% at 52% 18%, rgba(27, 244, 203, 0.78) 0%, rgba(27, 244, 203, 0.24) 32%, rgba(27, 244, 203, 0) 60%),
      radial-gradient(28% 65% at 0% 78%, rgba(61, 244, 214, 0.62) 0%, rgba(61, 244, 214, 0.18) 44%, rgba(61, 244, 214, 0) 78%),
      linear-gradient(180deg, #041f45 0%, #0a6e79 21%, #0b666e 34%, #09505a 58%, #084952 100%); */
}

.part-filter-select {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(235, 247, 245, 0.95);
    color: #285159;
    border-radius: 8px;
    height: 32px;
    min-width: 180px;
    padding: 0 2rem 0 12px;
    font-size: 12px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2323515b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 8px;
}

/* Hide legacy arrow in old Edge/IE */
.part-filter-select::-ms-expand {
    display: none;
}

.part-filter-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(235, 247, 245, 0.95);
}

.part-filter-input-wrap input {
    border: none;
    background: transparent;
    outline: none;
    width: 170px;
    font-size: 12px;
    color: #285159;
    padding: 0 12px;
    height: 32px;
}

.part-filter-input-wrap button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #23525b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.part-accordion-item { 
    border-bottom: 1px solid #53f4c9; 
}

.part-accordion-trigger {
    width: 100%;
    border: none;
    background: transparent;
    color: #e9fffb;
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 600;
    font-size: 25px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 4px;
    cursor: pointer;
}

/* Ensure main page headings use display font even if utility classes are present */
.select-part-page h1,
.select-part-page h2,
.select-part-page h3 {
    font-family: 'Wix Madefor Display', sans-serif;
}

.part-accordion-head {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #e1cece45;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.part-accordion-icon {
    color: #fff;
    font-size: 16px;
    transition: transform 0.28s ease;
    margin-top: 1px;
}

.part-accordion-head span{
    color: #00ffb0;
}

.part-accordion-trigger.is-open .part-accordion-icon { transform: rotate(0deg); }
.part-accordion-trigger:not(.is-open) .part-accordion-icon { transform: rotate(-180deg); }

.part-accordion-panel {
    padding: 0 4px 12px;
    overflow: hidden;
    max-height: 1200px;
    opacity: 1;
    transition: max-height 0.36s ease, opacity 0.24s ease;
}

.part-accordion-panel.is-collapsed {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
}

.part-terms-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px 10px;
}

/* Flat list on category part-type page (no A–Z accordion) */
.part-types-flat .part-terms-grid {
    padding-top: 4px;
}

.part-term {
    font-size: 14px;
    line-height: 1.95;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.part-term:hover {
    color: #c5ff44;
}

/* Category flat list — make each row read more like a small control */
.part-types-flat .part-term {
    line-height: 1.45;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    transition:
        color 0.18s ease,
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.part-types-flat .part-term:hover {
    color: #c5ff44;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(118, 242, 234, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.part-types-flat .part-term:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.08);
}

.part-term::after {
    content: "→";
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    color: #76f2ea;
    opacity: 0.85;
    transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.part-term:hover::after {
    color: #c5ff44;
    opacity: 1;
    transform: translateX(3px);
}

.part-term:focus-visible {
    outline: 2px solid #c5ff44;
    outline-offset: 2px;
    border-radius: 2px;
}

.part-types-flat .part-term:focus-visible {
        border-radius: 8px;
}

.part-trust-section {
    border: none;
}

.select-part-header{
    margin-top: 34px;
}

.select-part-header-inner{
    padding-inline: 32px;
}

.drop-downs-wrapper{
    background: linear-gradient(180deg, rgba(6, 105, 105, 0.5) 0%, rgb(3 38 41 / 89%) 100%);
}

.select-part-intro-text{
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.select-part-chose-instructions{
    font-family: 'Wix Madefor Display', sans-serif;
}

.part-buying-replacement{
    font-family: 'URWDIN-Bold', sans-serif;
}

@media (max-width: 900px) {
    .part-terms-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .select-part-page h1 {
        font-size: 48px;
    }

    .part-filter-select,
    .part-filter-input-wrap,
    .part-filter-input-wrap input {
        width: 100%;
        min-width: 0;
    }

    .part-filter-input-wrap {
        justify-content: space-between;
    }
}

@media (max-width: 560px) {
    .part-terms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ─── Mobile (≤ 600px) ─── */
@media (max-width: 600px) {
    .select-part-header { margin-top: 1rem; }

    .select-part-header-inner {
        padding-inline: 0;
    }

    .select-part-page h1 {
        font-size: 28px !important;
        line-height: 1;
    }

    /* Compact breadcrumbs */
    .select-part-header-inner > div p {
        font-size: 0.85rem !important;
        line-height: 1.35;
    }

    .drop-downs-wrapper {
        padding: 1.25rem 1rem 1.5rem !important;
        border-radius: 6px;
    }

    .select-part-intro-text {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .drop-downs-wrapper > p:nth-of-type(2) {
        font-size: 0.9rem !important;
        line-height: 1.5;
        margin-bottom: 1.5rem !important;
    }

    .select-part-chose-instructions {
        font-size: 0.95rem !important;
        margin-bottom: 0.85rem !important;
    }

    .part-accordion-trigger {
        font-size: 20px;
        padding: 10px 2px;
    }

    .part-accordion-head {
        gap: 10px;
        padding: 2px 8px;
        font-size: 18px;
    }

    .part-accordion-icon {
        font-size: 14px;
    }

    .part-accordion-panel {
        padding: 0 2px 8px;
    }

    /* Single column on phones — each part type is a full-width row */
    .part-terms-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .part-term {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 4px;
        font-size: 15px;
        line-height: 1.3;
        border-bottom: 1px solid rgba(83, 244, 201, 0.18);
    }

    .part-term::after {
        font-size: 14px;
        flex-shrink: 0;
        margin-left: auto;
    }

    /* Category page (.part-types-flat): pills keep their card look,
       drop the row separator and give vertical spacing between cards. */
    .part-types-flat .part-terms-grid {
        row-gap: 10px;
    }

    .part-types-flat .part-term {
        padding: 12px 14px;
        border-bottom: none;
        line-height: 1.35;
    }

    .part-types-flat .part-term::after {
        margin-left: auto;
    }

    /* Trust band: stack image over copy on phones */
    .part-trust-section .grid {
        grid-template-columns: 1fr !important;
    }

    .part-trust-section .grid > div:first-child {
        min-height: 180px !important;
        padding: 0 !important;
    }

    .part-trust-section .grid > div:first-child img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .part-trust-section .grid > div:nth-child(2) {
        padding: 1.25rem 1rem !important;
    }

    .part-buying-replacement {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-bottom: 0.85rem !important;
    }

    .part-trust-section .grid > div:nth-child(2) p {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
    }
}
