/* Product Search Styles */
.product-search-container {
    max-width: 1200px;
    margin: 0 auto;

}

/* Search Bar */
.search-bar-wrapper {
    margin-bottom: 20px;

    background: #F3F3F5;
    border-radius: 60px;
    padding: 8px 8px 8px 20px;

    display: flex;
    gap: 16px;
}

.search-input-container {
    position: relative;
    flex: 1;

    display: flex;
    align-items: center;
    gap: 16px;
}

.search-input-container img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

#search-input {
    flex: 1 0;
    background: transparent;
    border: none;
    appearance: none;
    box-shadow: none;
    font-size: 16px;
}

#search-input:focus {
    outline: none;
}

.clear-button {
    background: none;
    appearance: none;
    padding: 0 !important;
    cursor: pointer;
    display: none;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.clear-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-button {
    padding: 16px 24px;
    background-color: #1e73be;
    color: white;
    border: none;
    text-transform: none;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
}

.search-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Search Results Count */
.search-results-count {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    color: #045CA8;

    text-align: right;
}

/* Filter Sections */
.filter-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.filter-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
}

.filter-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 14px;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 6px;
}

/* Search Results */
.product-section {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.product-header {
    background-color: #1e73be;
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.product-details {
    overflow: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0 !important;
}

.product-table th {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.product-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.product-table tr:last-child td {
    border-bottom: none;
}

.request-button {
    background-color: transparent;
    color: #1e73be;
    cursor: pointer;
    font-size: 14px;
    line-height: 100%;
    padding: 0 !important;

    display: flex;
    gap: 10px;
    align-items: center;

}

.request-button-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    position: relative;
}

.request-button-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
    background: #1e73be;
}

.request-button-icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: #1e73be;
}

.request-button:hover {
    background-color: transparent;
    color: #1e73be;
    border: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: modalopen 0.3s;
}

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

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: transparent !important;
}

.form-group input:focus {
    outline: 1px solid #1e73be !important;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check input {
    margin-right: 8px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #1e73be;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #165992;
}

@media (max-width: 1024px) {

}

/* Responsive */
@media (max-width: 768px) {
    .filter-section {
        width: 100%;
    }

    .search-input-container img {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .search-button {
        padding: 8px 16px;
    }

    .search-bar-wrapper {
        padding: 8px 8px 8px 16px;
        gap: 10px;
    }

    #search-input {
        padding: .75em 0 !important;
        font-size: 12px !important;
    }

    .search-input-container {
        gap: 10px;
    }

    .clear-button {
        flex: 0 0 20px;
        height: 20px;
        width: 20px;
    }
}