#bpsearch-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.bpsearch-wrapper {
    position: relative;
}

.bpsearch-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bpsearch-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    font-size: 16px;
    border: 2px solid #0B7739;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
}

.bpsearch-input:focus {
    border-color: #095d2d;
    box-shadow: 0 0 0 3px rgba(11, 119, 57, 0.1);
}

.bpsearch-search-btn {
    position: absolute;
    right: 5px;
    background: #0B7739;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.bpsearch-search-btn:hover {
    background: #095d2d;
}

.bpsearch-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.bpsearch-loading-overlay.active {
    display: flex;
}

.bpsearch-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #EE6FBC;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: bpsearch-spin 1s linear infinite;
}

@keyframes bpsearch-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bpsearch-results {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10000;
    display: none;
    flex-direction: column;
}

.bpsearch-results.active {
    display: flex;
}

.bpsearch-results-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bpsearch-results-header {
    padding: 25px 40px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.bpsearch-results-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.bpsearch-close-modal {
    background: #f5f5f5;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.bpsearch-close-modal:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.bpsearch-results-content {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    overflow-y: auto;
    flex: 1;
}

.bpsearch-result-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: max-content;
}

.bpsearch-result-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
    border-color: #0B7739;
}

.bpsearch-result-image {
    width: 100%;
    height: 280px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bpsearch-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.bpsearch-no-image {
    font-size: 16px;
    color: #bbb;
    text-align: center;
}

.bpsearch-result-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bpsearch-result-name {
    font-weight: 600;
    font-size: 17px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
    min-height: 50px;
}

.bpsearch-result-ref {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.bpsearch-result-price {
    font-size: 20px;
    font-weight: 700;
    color: #0B7739;
    margin-bottom: 20px;
}

.bpsearch-result-actions {
    margin-top: auto;
}

.bpsearch-view-btn {
    background: #EE6FBC;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(238, 111, 188, 0.3);
}

.bpsearch-view-btn:hover {
    background: #e04fa9;
    color: white;
    box-shadow: 0 6px 20px rgba(238, 111, 188, 0.5);
    transform: translateY(-2px);
}

.bpsearch-no-results,
.bpsearch-error {
    padding: 80px 40px;
    text-align: center;
    color: #999;
    font-size: 20px;
}

@media (max-width: 768px) {
    .bpsearch-results-content {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 20px;
    }
    
    .bpsearch-result-image {
        height: 220px;
    }
    
    .bpsearch-results-title {
        font-size: 20px;
    }
    
    .bpsearch-results-header {
        padding: 15px 20px;
    }
    
    .bpsearch-result-name {
        font-size: 15px;
        min-height: auto;
    }
}