a:hover, a:active, a:focus, .clr-txt, .mega-dropdown-menu .sub-list > li a:hover:before, .footer-widget .list li a:hover:before, .form-group [type="checkbox"]:checked + span::before, .top-nav > li a:hover, .top-nav > li a:focus, .breadcrumb-menubar > li > a:hover, .breadcrumb-menubar > li > a:focus, .blog-tabs li a:hover, .blog-tabs .active a {
    /* color: #103178; */
    color: #FD8D27;
}
a, .btn, button {
    -ms-transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    /* color: #333; */
    color: #103178;
}
h1, h2, h3, h4, h5, h6 {
    position: relative;
    /* color: #222; */
    color: #103178;
    font-family: "Jost", sans-serif;
}
.mb-70 {
    margin-bottom: 70px;;
}

/* Product Search Styling */
.ps-search-table {
    position: relative;
}

.ps-search-table .input-group {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ps-search-table .input-group:focus-within {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ps-search-table .form-control {
    border: 1px solid #e9ecef;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ps-search-table .form-control:focus {
    border-color: #ff5e00;
    box-shadow: none;
}

.ps-search-table .input-group-append a {
    background: linear-gradient(135deg, #ff9a00 0%, #ff5e00 100%);
    color: white;
    border: 0;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ps-search-table .input-group-append a:hover {
    background: linear-gradient(135deg, #ff5e00 0%, #ff9a00 100%);
}

.ps-search--result {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

.ps-search--result.active {
    display: block;
    pointer-events: auto; /* Ensure click events work */
}

.ps-search--result .ps-result__content {
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    min-height: 50px; /* Ensure minimum height for small result sets */
    position: relative;
}

.ps-search--result .checkout-header {
    background: linear-gradient(135deg, #ff9a00 0%, #ff5e00 100%);
    color: white;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ps-search--result .ps-result__viewall {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: center;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.ps-search--result .ps-result__viewall a {
    color: #ff5e00;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ps-search--result .ps-result__viewall a:hover {
    color: #ff9a00;
    text-decoration: none;
}

.checkout-card {
    transition: transform 0.2s, box-shadow 0.3s;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #fff;
}

.checkout-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.ps-search__loading {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

/* Custom scrollbar for search results */
.ps-search--result::-webkit-scrollbar {
    width: 8px;
}

.ps-search--result::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 8px 0;
}

.ps-search--result::-webkit-scrollbar-thumb {
    background: #ffb066;
    border-radius: 10px;
}

.ps-search--result::-webkit-scrollbar-thumb:hover {
    background: #ff7e33;
}

/* Improve scrolling behavior */
.ps-header__search {
    position: relative;
}

.ps-search--result .row {
    margin: 0;
    padding: 10px;
    overflow: visible;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .ps-search--result {
        max-height: 60vh;
        -webkit-overflow-scrolling: touch;
        overflow-y: scroll; /* Force scrolling on mobile */
    }
    
    .ps-header--mobile .ps-search--result {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1001;
        overflow-y: scroll;
    }
    
    .ps-search--mobile .ps-search__result {
        max-height: 60vh;
        overflow-y: scroll;
    }
    
    .ps-search--result .checkout-header h5 {
        font-size: 14px;
    }
}

/* Mobile search styling */
.ps-search--mobile .ps-search__content {
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
}

.ps-search--mobile h3 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.ps-search--mobile .ps-search__close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    color: #999;
    transition: all 0.3s ease;
}

.ps-search--mobile .ps-search__close:hover {
    color: #ff5e00;
}

.ps-search--mobile .ps-search__result {
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .search-result-item {
        padding: 10px;
    }
    
    .search-result-item .ps-product__thumbnail {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .search-result-item .ps-product__title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .search-result-item .ps-product__desc {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .search-result-item .ps-product__price {
        font-size: 14px;
        margin-right: 10px;
    }
    
    .search-result-item .ps-btn--outline,
    .search-result-item .ps-btn--warning {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    .search-result-item .ps-product__actions {
        gap: 5px;
    }
    
    .ps-search--result {
        max-height: 400px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix for scrolling results - separate scrollable container */
.ps-search-results-wrapper {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    position: relative;
    z-index: 5;
    background: #fff;
}

.ps-search-results-wrapper::-webkit-scrollbar {
    width: 8px;
}

.ps-search-results-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ps-search-results-wrapper::-webkit-scrollbar-thumb {
    background: #ffb066;
    border-radius: 10px;
}

.ps-search-results-wrapper::-webkit-scrollbar-thumb:hover {
    background: #ff7e33;
}

/* Prevent container from scrolling */
.ps-search--result {
    overflow: hidden;
    display: none;
}

.ps-search--result.active {
    display: block;
}

/* Fix for sticky header and footer in search results */
.ps-search--result .checkout-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

.ps-search--result .ps-result__viewall {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Scrollable area fixes */
.ps-result__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
}

@media (max-width: 767px) {
    .ps-search-results-wrapper {
        max-height: 50vh;
    }
    
    .ps-result__content {
        max-height: 70vh;
    }
}