.talla-search-container {
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity var(--talla-transition), visibility var(--talla-transition);
    visibility: hidden;
    width: 100%;
    z-index: 10000;
}

.talla-search-container.active {
    opacity: 1;
    visibility: visible;
}

.talla-search-overlay {
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.talla-search-box {
    background: #fff;
    border-radius: var(--talla-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    left: 50%;
    max-height: 70vh;
    max-width: 700px;
    position: absolute;
    top: 100px;
    transform: translateX(-50%);
    width: 90%;
}

.search-header {
    align-items: center;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 10px;
    padding: 20px;
}

.search-input {
    border: 0;
    color: #333;
    direction: rtl;
    flex: 1;
    font-family: inherit;
    font-size: 1.1rem;
    outline: 0;
}

.search-close-btn {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    display: flex;
    font-size: 1.5rem;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.search-close-btn:hover {
    background: #f0f0f0;
    color: #000;
}

.search-results {
    flex: 1;
    max-height: calc(70vh - 100px);
    overflow-y: auto;
}

.search-results-list {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    color: inherit;
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.result-image {
    background: #f0f0f0;
    border-radius: var(--talla-radius-md);
    height: 60px;
    object-fit: cover;
    width: 60px;
}

.result-content {
    flex: 1;
    text-align: right;
}

.result-content h5 {
    color: #222;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.result-price {
    color: var(--talla-color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
}

.search-loading,
.search-no-results,
.search-error {
    align-items: center;
    color: #999;
    display: flex;
    font-size: 0.95rem;
    gap: 10px;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.search-loading i {
    animation: talla-spin 1s linear infinite;
}

@keyframes talla-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .talla-search-box {
        max-height: 50vh;
        top: 80px;
        width: 95%;
    }

    .search-header {
        padding: 15px;
    }

    .result-image {
        height: 50px;
        width: 50px;
    }
}