/* Add to assets/css/marketplace.css */
.step-indicator-container {
    width: 100%;
    margin: 2rem 0 1rem 0;
    display: flex;
    justify-content: center;
}
.step-indicator {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    font-size: 0.95rem;
    position: relative;
}
.step-item .step-num {
    background: #eee;
    color: #333;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
    font-weight: bold;
    border: 2px solid #eee;
    transition: all 0.2s;
}
.step-item.active .step-num,
.step-item.completed .step-num {
    background: #09c509;
    color: #fff;
    border-color: #09c509;
}
.step-item.active,
.step-item.completed {
    color: #09c509;
}
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -3rem;
    top: 1rem;
    width: 4rem;
    height: 3px;
    background: #eee;
    z-index: 0;
}
.step-item.completed:not(:last-child)::after {
    background: #09c509;
}
.brand-options-redesign {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin: 2.5rem 0 1.5rem 0;
    flex-wrap: wrap;
}
.brand-option-redesign {
    background: linear-gradient(135deg, #f8f8f8 60%, #e9ffe9 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(9,197,9,0.07), 0 1.5px 6px rgba(0,0,0,0.04);
    border: 2.5px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    /* Increased size */
    padding: 2rem 2rem 1.7rem 2rem;
    width: 350px;
    height: 300px;
    transition: 
        box-shadow 0.22s, 
        border 0.22s, 
        transform 0.18s,
        background 0.22s;
    position: relative;
    overflow: hidden;
}
.brand-option-redesign:hover, .brand-option-redesign:focus {
    border: 2.5px solid #09c509;
    box-shadow: 0 8px 32px rgba(9,197,9,0.16), 0 2px 12px rgba(0,0,0,0.07);
    background: linear-gradient(135deg, #e9ffe9 60%, #d0ffd0 100%);
    transform: translateY(-6px) scale(1.045);
    z-index: 2;
}
.brand-img-wrap {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(9,197,9,0.08);
    padding: 1.7rem;
    margin-bottom: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 2px solid #09c509;
}
.brand-img-wrap img {
    width: 120px;
    height: 120px;
    transition: transform 0.18s, filter 0.18s;
}
.brand-option-redesign img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.07));
}
.brand-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.01em;
    text-align: center;
    margin-top: 0.4rem;
    transition: color 0.18s;
}
.brand-option-redesign:hover .brand-label {
    color: #09c509;
}

.glass-grade-card {
    background: rgba(255,255,255,0.22);
    border: 2.5px solid #e0e0e0;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: 
        box-shadow 0.22s, 
        border 0.22s, 
        transform 0.18s,
        background 0.22s;
    position: relative;
    overflow: hidden;
    min-width: 220px;
    max-width: 320px;
    margin: 0 1rem;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.glass-grade-card:hover, .glass-grade-card:focus {
    border: 2.5px solid #09c509;
    box-shadow: 0 12px 36px 0 rgba(9,197,9,0.18), 0 2px 12px rgba(0,0,0,0.07);
    background: rgba(233,255,233,0.45);
    transform: translateY(-8px) scale(1.055);
    z-index: 2;
}
.glass-grade-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 68px;
    height: 68px;
    margin-bottom: 1.1rem;
    font-size: 2.3rem;
    color: #fff;
    box-shadow: 0 0 18px 2px #09c50933;
    position: relative;
    transition: box-shadow 0.22s, transform 0.18s;
}
.glass-grade-card[data-grade="new"] .glass-grade-icon {
    color: #f7b500;
    text-shadow: 0 0 8px #ffe06699;
}
.glass-grade-card[data-grade="tokunbo"] .glass-grade-icon {
    color: #09c509;
    text-shadow: 0 0 8px #5ee2ff99;
}
.glass-grade-card:hover .glass-grade-icon {
    box-shadow: 0 0 32px 4px #09c50955, 0 0 0 4px #fff2;
    transform: scale(1.12) rotate(-6deg);
}
.advanced-grade-label {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222;
    letter-spacing: 0.01em;
    margin-bottom: 0.2rem;
    text-shadow: 0 1px 8px #fff8;
}
.glass-grade-card:hover .advanced-grade-label {
    color: white;
}
.grade-desc {
    font-size: 1.01rem;
    color: whitesmoke;
    margin-top: 0.2rem;
    text-align: center;
    opacity: 0.85;
}

.filter-step h3{
    text-align: center;
    font-size: 20pt;
}
.brand-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.2s, border 0.2s;
    background: #fff;
    width: 200px;
    height: 250px;
    box-sizing: border-box;
}
.brand-option:hover {
    border: 2px solid #09c509;
    box-shadow: 0 2px 12px rgba(9,197,9,0.1);
}
.brand-option img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}
#custom-parts-filter .grade-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.grade-option {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    background: #09c509;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 120px;
}
.grade-option:hover {
    background: #09c509;
}
#custom-parts-filter .category-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.category-options-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
    margin: 40px 0;
}
.category-option-advanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.category-option-advanced:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.category-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.category-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}
.back-btn {
    background: #eee;
    color: #222;
    border: 1px solid black;
    border-radius: 5px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1rem;
    margin-left: 0;
}
.back-btn:hover {
    background: #ddd;
}
.parts-section .back-btn-section {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    margin-left: 6rem;
}

.engine-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.engine-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#engine-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#engine-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.engine-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.engine-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.engine-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.engine-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.engine-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.exterior-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.exterior-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#exterior-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#exterior-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.exterior-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.exterior-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.exterior-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.exterior-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.exterior-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.interior-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.interior-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#interior-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#interior-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.interior-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.interior-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.interior-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.interior-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.interior-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.underneath-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.underneath-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#underneath-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#underneath-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.underneath-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.underneath-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.underneath-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.underneath-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.underneath-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}
.electronics-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.electronics-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#electronics-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#electronics-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.electronics-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.electronics-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.electronics-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.electronics-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.electronics-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.accessories-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.accessories-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#accessories-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#accessories-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.accessories-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.accessories-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.accessories-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.accessories-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.accessories-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.aircon-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.aircon-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#aircon-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#aircon-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.aircon-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.aircon-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.aircon-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.aircon-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.aircon-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

/* Rims & Tires Subcategories Styling */
.rims-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.rims-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#rims-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#rims-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.rims-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.rims-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.rims-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.rims-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.rims-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.lubricant-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.lubricant-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#lubricant-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#lubricant-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.lubricant-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.lubricant-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.lubricant-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.lubricant-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.lubricant-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

/* Fancy Subcategories Styling */
.fancy-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.fancy-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#fancy-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#fancy-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.fancy-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.fancy-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.fancy-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.fancy-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.fancy-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

/* Windscreen Subcategories Styling */
.windscreen-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.windscreen-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#windscreen-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#windscreen-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.windscreen-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.windscreen-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.windscreen-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.windscreen-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.windscreen-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.toggle-filter-btn {
            display: block;
            width: 90%;
            background: #e60000;
            color: #fff;
            border: none;
            padding: 0.75rem 1rem;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 6px;
            margin: 10px auto 0;
            cursor: pointer;
            transition: background 0.2s;
            z-index: 20;
        }
        .toggle-filter-btn i {
            margin-right: 0.5rem;
        }
        .part-filter {
            overflow: hidden;
            max-height: 0;
            opacity: 0;
            transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
            will-change: max-height, opacity;
            padding: 40px 0;
        }
        .part-filter.show {
            max-height: 800px; /* enough for content */
            opacity: 1;
            transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
        }

        /* Hide the filter search section */
        #filter-search {
            display: block !important;
        }
        /* Always show the custom parts filter */
        #custom-parts-filter {
            display: block !important;
            max-height: none !important;
            opacity: 1 !important;
            overflow: visible !important;
        }
        
        

/* Android Screen Subcategories Styling */
.android-screen-subcategories-advanced {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
}
.android-screen-subcategories-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
#android-screen-subcat-search {
    padding: 0.6rem 1rem;
    border: 1px solid #09c509;
    border-radius: 6px;
    font-size: 1rem;
    width: 250px;
    max-width: 100%;
    outline: none;
    transition: border 0.2s;
}
#android-screen-subcat-search:focus {
    border: 1.5px solid #067c06;
}
.android-screen-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}
.android-screen-subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
    box-shadow: 0 1px 6px rgba(9,197,9,0.04);
    position: relative;
}
.android-screen-subcategory-card:hover {
    border: 1.5px solid #09c509;
    box-shadow: 0 4px 18px rgba(9,197,9,0.13);
    transform: translateY(-3px) scale(1.04);
    z-index: 2;
}
.android-screen-subcat-icon {
    font-size: 2.2rem;
    color: #09c509;
    margin-bottom: 0.7rem;
}
.android-screen-subcat-label {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.parts-details {
    display: none;
    margin-bottom: 50px;
}

.part-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 100px;
}

.product-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.product-item:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}

.product-img {
    width: 100%;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px;
}

.product-img img {
    width: 100%;
    height: 280px;
    object-fit: fill;
}

.product-details {
    padding: 16px 18px 8px 18px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-details h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.product-details p,
.product-details div {
    margin: 0;
    font-size: 0.97rem;
    color: #444;
}

.part-model {
    font-size: 0.90rem;
}

.add-to-cart-container {
    padding: 12px 18px 18px 18px;
    display: flex;
    justify-content: center;
}

.add-to-cart-btn.btn.btn-red {
    background-color: red;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 0.8rem;
    margin: 0;
}

.add-to-cart-btn.btn.btn-red:hover {
    background: #a00;
}





@media (min-width: 992px) {
            .toggle-filter-btn {
                display: none !important;
            }
            .part-filter {
                max-height: none !important;
                opacity: 1 !important;
                overflow: visible !important;
            }
        }

@media (max-width: 900px) {
    .brand-options-redesign {
        gap: 1.2rem;
    }
    .brand-option-redesign {
        width: 170px;
        height: 250px;
        padding: 1.5rem 1.2rem 1.5rem 1.2rem;
    }
    .brand-img-wrap {
        width: 90px;
        height: 90px;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    .brand-img-wrap img {
        width: 40px;
        height: 40px;
    }
    .grade-options-redesign {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.1rem !important;
    }
    .glass-grade-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 1.5rem 0.5rem 1.3rem 0.5rem;
        margin: 0.5rem 0;
    }
    .step-indicator-container{
        margin: -10px 0;
    }
    .step-indicator{
        margin: -10px 0;
    }
}

@media (max-width: 768px) {
    #custom-parts-filter .brand-options {
        gap: 1rem;
    }
    .brand-option {
        width: 100%;
        height: 100px;
        padding: 0.7rem;
    }
    .brand-option img {
        padding-top: 5px;
        width: 70px;
        height: 70px;
    }
    #custom-parts-filter .grade-options,
    #custom-parts-filter .category-options {
        gap: 1rem;
    }
    .grade-option,
    .category-option {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
        min-width: 90px;
    }
    .category-option {
        min-width: 120px;
    }
    .parts-section .back-btn-section {
        margin-left: 1.5rem;
    }
    .step-item:not(:last-child)::after {
        left: 2rem;
        width: 2rem;
    }
    .part-grid {
        padding: 10px 15px;
    }
    .product-item{
        width: 100%;
    }
    .add-to-cart-container {
        margin-bottom: 10px;
    }
    .product-img img {
        width: 100%;
        object-fit: fill;
    }
}

@media (max-width: 700px) {
    .engine-subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.7rem;
    }
    .engine-subcategory-card {
        padding: 0.8rem 0.2rem 0.7rem 0.2rem;
    }
    #engine-subcat-search {
        width: 100%;
        font-size: 0.98rem;
    }
    .exterior-subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.7rem;
    }
    .exterior-subcategory-card {
        padding: 0.8rem 0.2rem 0.7rem 0.2rem;
    }
    #exterior-subcat-search {
        width: 100%;
        font-size: 0.98rem;
    }
    .interior-subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.7rem;
    }
    .interior-subcategory-card {
        padding: 0.8rem 0.2rem 0.7rem 0.2rem;
    }
    #interior-subcat-search {
        width: 100%;
        font-size: 0.98rem;
    }
    .underneath-subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.7rem;
    }
    .underneath-subcategory-card {
        padding: 0.8rem 0.2rem 0.7rem 0.2rem;
    }
    #underneath-subcat-search {
        width: 100%;
        font-size: 0.98rem;
    }
    .electronics-subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.7rem;
    }
    .electronics-subcategory-card {
        padding: 0.8rem 0.2rem 0.7rem 0.2rem;
    }
    #electronics-subcat-search {
        width: 100%;
        font-size: 0.98rem;
    }
    .accessories-subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.7rem;
    }
    .accessories-subcategory-card {
        padding: 0.8rem 0.2rem 0.7rem 0.2rem;
    }
    #accessories-subcat-search {
        width: 100%;
        font-size: 0.98rem;
    }
    .airconditioner-subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.7rem;
    }
    .airconditioner-subcategory-card {
        padding: 0.8rem 0.2rem 0.7rem 0.2rem;
    }
    #airconditioner-subcat-search {
        width: 100%;
        font-size: 0.98rem;
    }
}

@media (max-width: 600px) {
    .brand-options-redesign {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .brand-option-redesign {
        width: 98vw;
        max-width: 340px;
        height: 100px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 0.7rem 1.3rem;
    }
    .brand-img-wrap {
        width: 70px;
        height: 70px;
        padding: 0.7rem;
        margin-bottom: 0;
        margin-right: 1.3rem;
    }
    .brand-option-redesign img {
        width: 32px;
        height: 32px;
    }
    .brand-label {
        font-size: 1.15rem;
        margin-top: 0;
    }
    .grade-options-redesign {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.1rem !important;
    }
    .glass-grade-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 0.7rem 0.3rem 0.5rem 0.3rem;
        margin: 0.4rem 0;
    }
    .part-grid {
        grid-template-columns: 1fr;
    }
    .product-details {
        padding: 12px 10px 6px 10px;
    }
    .add-to-cart-container {
        padding: 10px 10px 14px 10px;
    }
}

@media (max-width: 500px) {
    #custom-parts-filter .brand-options {
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
    }
    .brand-option {
        width: 100%;
        min-width: unset;
        min-height: 80px;
        padding: 0.5rem;
    }
    .brand-option img {
        width: 32px;
        height: 32px;
    }
    #custom-parts-filter .grade-options,
    #custom-parts-filter .category-options {
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
    }
    .grade-option,
    .category-option {
        width: 100%;
        min-width: unset;
        padding: 0.6rem 0.5rem;
        font-size: 0.98rem;
    }
    #custom-parts-filter h3 {
        font-size: 1.1rem;
    }
    .parts-section .back-btn-section {
        margin-left: 0.9rem;
    }
    .engine-subcategories-advanced {
        padding: 1rem 0.3rem;
    }
    .engine-subcategories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .engine-subcategory-card {
        padding: 0.7rem 0.1rem 0.6rem 0.1rem;
    }
    .exterior-subcategories-advanced {
        padding: 1rem 0.3rem;
    }
    .exterior-subcategories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .exterior-subcategory-card {
        padding: 0.7rem 0.1rem 0.6rem 0.1rem;
    }
    .interior-subcategories-advanced {
        padding: 1rem 0.3rem;
    }
    .interior-subcategories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .interior-subcategory-card {
        padding: 0.7rem 0.1rem 0.6rem 0.1rem;
    }
    .underneath-subcategories-advanced {
        padding: 1rem 0.3rem;
    }
    .underneath-subcategories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .underneath-subcategory-card {
        padding: 0.7rem 0.1rem 0.6rem 0.1rem;
    }
    .electronics-subcategories-advanced {
        padding: 1rem 0.3rem;
    }
    .electronics-subcategories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .electronics-subcategory-card {
        padding: 0.7rem 0.1rem 0.6rem 0.1rem;
    }
    .accessories-subcategories-advanced {
        padding: 1rem 0.3rem;
    }
    .accessories-subcategories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .accessories-subcategory-card {
        padding: 0.7rem 0.1rem 0.6rem 0.1rem;
    }
    .airconditioner-subcategories-advanced {
        padding: 1rem 0.3rem;
    }
    .airconditioner-subcategories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .airconditioner-subcategory-card {
        padding: 0.7rem 0.1rem 0.6rem 0.1rem;
    }
}