.mega-search-section {
    margin: 35px 0;
}

.mega-search-section .mega-search-sec-title {
    font-size: 22px;
    margin-bottom: 25px;
}

.mega-search-wrap {
    background: #ffffff;
    padding: 45px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 136, 204, 0.1);
}

.mega-search-items-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

.select-field-group {
    width: 100%;
}

.normal-select,
.mega-search-min-max-item-wrap .normal-select {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.normal-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
    background-color: #fff;
}

.mega-search-min-max-item-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

.range-separator {
    color: var(--secondary);
    font-weight: bold;
}

.toggle-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
}

.accessory-toggle-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.accessory-toggle-btn:hover {
    color: var(--primary-hover);
}

.accessory-toggle-btn i {
    transition: transform 0.3s ease;
}

.accessory-toggle-btn.active i {
    transform: rotate(180deg);
}


.accessories-expandable-panel {
    display: none;
    background: #0088cc0a;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    border: 1.5px dashed rgba(0, 136, 204, 0.2);
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.accessory-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

.accessory-checkbox-label input {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    display: inline-block;
    position: relative;
    background: #fff;
    transition: var(--transition-smooth);
}

.accessory-checkbox-label input:checked+.custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.accessory-checkbox-label input:checked+.custom-checkbox::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mega-search-deals-wrap {
    margin: 30px 0px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mega-search-item-wrap {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    column-gap: 8px;
}


.deal-image-card img {
    width: 90px;
    object-fit: contain;
    transition: var(--transition-fast);
}


/* .mega-search-item-wrap input[type="checkbox"] {
    display: none;
}

.deal-image-card {
    position: relative;
    width: 140px;
    height: 40px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
} */



/* .selection-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    color: var(--primary);
    font-size: 14px;
    background: #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}


.mega-search-item-wrap:hover .deal-image-card {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.mega-search-item-wrap input[type="checkbox"]:checked+.deal-image-card {
    border-color: var(--primary);
    background-color: rgba(0, 136, 204, 0.03);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

.mega-search-item-wrap input[type="checkbox"]:checked+.deal-image-card img {
    transform: scale(1.05);
}

.mega-search-item-wrap input[type="checkbox"]:checked+.deal-image-card .selection-indicator {
    opacity: 1;
    transform: scale(1);
}
 */

.mega-search-action-wrap {
    display: flex;
    align-items: center;
    column-gap: 18px;
}

.mega-search-submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    height: 48px;
    padding: 0 35px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    transition: var(--transition-smooth);
}

.mega-search-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

.action-divider {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.mega-search-reset-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary);
    height: 48px;
    padding: 0 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mega-search-reset-btn:hover {
    background: #f1f3f5;
    color: var(--text-dark);
}

.mega-search-section .select2-container--default .select2-selection--single {
    height: 46px !important;
    background-color: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
}

.mega-search-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding-left: 16px !important;
}

.mega-search-section .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 10px !important;
}

.mega-search-section .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15) !important;
}

.mega-search-section .select2-dropdown {
    border: 1px solid var(--primary) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
}

.mega-search-section .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
}


.search-field-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 22px;
}

.mega-search-input {
    width: 100%;
    height: 54px;
    padding: 12px 140px 12px 20px;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    outline: none;
    transition: var(--transition-smooth);
    display: block;
    text-align: left;
}

.mega-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.12);
    background-color: #fff;
}

.mega-search-input::-webkit-search-cancel-button {
    position: relative;
    right: 15px;
    cursor: pointer;
    padding: 4px;
}

.mega-search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
    opacity: 1;
}

.mega-search-field-btn {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    height: 50px;
    width: 122px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    z-index: 5;
    transition: var(--transition-smooth);
}

.mega-search-field-btn:hover {
    background: var(--primary-hover);
}

.mega-search-field-btn .search-icon {
    font-size: 18px;
    color: #ffffff;
    transition: var(--transition-smooth);
}


@media (max-width: 1024px) {

    .mega-search-items-wrap,
    .accessories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .mega-search-items-wrap,
    .accessories-grid {
        grid-template-columns: 1fr;
    }

    .mega-search-action-wrap {
        flex-direction: column;
        align-items: start;
        width: 100%;
    }

    .mega-search-reset-btn,
    .mega-search-submit-btn {
        width: 100%;
    }

    .mega-search-action-wrap {
        row-gap: 16px;
    }

    .action-divider {
        display: none;
    }

    .mega-search-input {
        height: 48px;
        font-size: 15px;
        padding-left: 15px;
    }

    .search-field-wrap .search-icon {
        font-size: 16px;
        right: 15px;
    }



}