/* =====================================
Product Search Section
===================================== */

.product-search-section {
    padding: 60px 0 30px;
    background: #f9f9f9;
}

.product-search-wrapper {
    text-align: center;
}

.product-search-box {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s ease;
}

.product-search-box:hover {
    border-color: #ff5e14;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.product-search-box input {
    flex: 1;
    border: none;
    padding: 14px 22px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.product-search-box input::placeholder {
    color: #999;
}

.product-search-box button {
    border: none;
    background: #ff5e14;
    color: #ffffff;
    padding: 0 28px;
    height: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.product-search-box button:hover {
    background: #222;
}

/* =====================================
Search Active Horizontal Mode
===================================== */

.project-section.search-active .project-slider {
    display: flex !important;
    flex-wrap: nowrap;       /* keep items in single row */
    gap: 30px;
    overflow-x: auto;        /* horizontal scroll if more results */
    padding-bottom: 10px;
}

.project-section.search-active .item {
    display: contents;       /* remove owl wrapper effect */
}

.project-section.search-active .single-project {
    flex: 0 0 calc(33.33% - 20px); /* 3 items visible */
    margin-bottom: 0;
    transition: 0.3s ease;
}

/* Optional scrollbar styling */
.project-section.search-active .project-slider::-webkit-scrollbar {
    height: 6px;
}

.project-section.search-active .project-slider::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* Tablet */
@media (max-width: 992px) {
    .project-section.search-active .single-project {
        flex: 0 0 calc(50% - 15px);
    }
}

/* Mobile */
@media (max-width: 576px) {

    .product-search-section {
        padding: 40px 0 20px;
    }

    .product-search-box {
        max-width: 100%;
    }

    .product-search-box input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .project-section.search-active .single-project {
        flex: 0 0 100%;
    }
}